Skip to content

Commit c89dbc4

Browse files
committed
Minor Eden header fixes.
1 parent bdb6867 commit c89dbc4

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

Eden/EdenTime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#include <time.h> // ctime(), time_t
4646
#include <string.h> // strncpy()
4747
#if defined(EDEN_UNIX)
48-
# include <sys/time.h> // gettimeofday(), struct timeval
48+
//# include <sys/time.h> // gettimeofday(), struct timeval
4949
# include <unistd.h> // sleep(), usleep()
5050
#elif defined(_WIN32)
5151
# include <windows.h> // FILETIME, GetSystemTimeAsFileTime(), <winbase.h> Sleep()

Eden/EdenTime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ extern "C" {
6767
#endif
6868

6969
#if defined(EDEN_UNIX)
70-
# include <sys/time.h> // struct timespec, struct timeval, gettimeofday()
70+
# include <sys/time.h> // struct timespec
7171
#else
7272
# ifndef PTHREAD_H // pthreads_win32 also defines struct timespec.
7373
#define _CRT_NO_TIME_T

Eden/EdenUIInput.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@
4545
#include <stdlib.h> // malloc(), calloc(), free(), exit()
4646
#include <stdbool.h>
4747
#ifdef _WIN32
48-
# include <sys/timeb.h> // struct _timeb
48+
# include <sys/timeb.h> // struct _timeb, _ftime
49+
#else
50+
# include <sys/time.h> // gettimeofday(), struct timeval
4951
#endif
5052
#include <pthread.h>
51-
#include <Eden/EdenTime.h> // struct timeval
5253

5354
// ============================================================================
5455
// Types and constants

Eden/EdenUIInput.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
#ifndef __Eden_h__
5353
# include <Eden/Eden.h>
5454
#endif
55-
#include <Eden/EdenError.h> // EDEN_E_t
5655
#include <stdbool.h>
5756

5857
#ifdef __cplusplus
@@ -61,8 +60,6 @@ extern "C" {
6160

6261
typedef struct _EdenUIInput *EdenUIInput_t;
6362

64-
typedef bool (*EdenUIInputKeystrokeProcessor_t)(const unsigned char keyAsciiCode, EdenUIInput_t input);
65-
6663
/*!
6764
@brief Create a new instance of input.
6865
@details

0 commit comments

Comments
 (0)