From f48eb36f758ca4d92bc45c0a9255d9becc3fe320 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 21 Apr 2008 19:17:42 +0000 Subject: HAVE_FFLUSH and HAVE_FSYNC symbol definitions for WIN32 systems --- lib/config-win32.h | 6 ++++++ lib/config-win32ce.h | 8 ++++++++ src/config-win32.h | 6 ++++++ 3 files changed, 20 insertions(+) diff --git a/lib/config-win32.h b/lib/config-win32.h index 031eda54a..73ac8a08e 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -136,6 +136,12 @@ /* Define if you don't have vprintf but do have _doprnt. */ /* #define HAVE_DOPRNT 1 */ +/* Define if you have the fflush function. */ +#define HAVE_FFLUSH 1 + +/* Define if you have the fsync function. */ +/* #define HAVE_FSYNC 1 */ + /* Define if you have the gethostbyaddr function. */ #define HAVE_GETHOSTBYADDR 1 diff --git a/lib/config-win32ce.h b/lib/config-win32ce.h index 6c0fb411f..715f1c3e6 100644 --- a/lib/config-win32ce.h +++ b/lib/config-win32ce.h @@ -127,6 +127,14 @@ /* Define if you don't have vprintf but do have _doprnt. */ /* #define HAVE_DOPRNT 1 */ +/* Define if you have the fflush function. */ +#if defined(_WIN32_WCE) && (_WIN32_WCE >= 200) +# define HAVE_FFLUSH 1 +#endif + +/* Define if you have the fsync function. */ +/* #define HAVE_FSYNC 1 */ + /* Define if you have the gethostbyaddr function. */ #define HAVE_GETHOSTBYADDR 1 diff --git a/src/config-win32.h b/src/config-win32.h index 6aaac0032..92be57479 100644 --- a/src/config-win32.h +++ b/src/config-win32.h @@ -75,6 +75,12 @@ /* Define if you have the setmode function. */ #define HAVE_SETMODE 1 +/* Define if you have the fflush function. */ +#define HAVE_FFLUSH 1 + +/* Define if you have the fsync function. */ +/* #define HAVE_FSYNC 1 */ + /* Define if you have the ftruncate function. */ #define HAVE_FTRUNCATE 1 -- cgit v1.2.3