diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2003-04-09 17:14:24 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2003-04-09 17:14:24 +0000 |
commit | b6f30a7aac5793854b319e7a824787d10d48d29d (patch) | |
tree | f185d49769c4f16ec10d4a446672d3f2e20fedd6 /ace/config-win32-mingw.h | |
parent | 3f2c5466c98296f743b01ad6245ec8ca1dad53cc (diff) | |
download | ATCD-b6f30a7aac5793854b319e7a824787d10d48d29d.tar.gz |
ChangeLogTag: Wed Apr 09 19:13:12 2002 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/config-win32-mingw.h')
-rw-r--r-- | ace/config-win32-mingw.h | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/ace/config-win32-mingw.h b/ace/config-win32-mingw.h index af590f6003b..e4cc77e30de 100644 --- a/ace/config-win32-mingw.h +++ b/ace/config-win32-mingw.h @@ -11,7 +11,7 @@ #include "ace/pre.h" #ifndef ACE_CONFIG_WIN32_H -#error Use config-win32.h in config.h instead of this header +# error Use config-win32.h in config.h instead of this header #endif /* ACE_CONFIG_WIN32_H */ #define ACE_CC_NAME ACE_LIB_TEXT ("g++") @@ -37,8 +37,8 @@ #define ACE_LACKS_MODE_MASKS #define ACE_HAS_USER_MODE_MASKS -#if (__MINGW32_MAJOR_VERSION == 0) && (__MINGW32_MINOR_VERSION < 5) -#error You need a newer version (>= 0.5) of mingw32/w32api +#if (__MINGW32_MAJOR_VERSION < 2) +# error You need a newer version (>= 2.0) of mingw32/w32api #endif #define ACE_LACKS_STRRECVFD @@ -61,36 +61,5 @@ #define ACE_ENDTHREADEX(STATUS) ::_endthreadex ((DWORD) (STATUS)) -#if ( __W32API_MAJOR_VERSION < 1) || ((__W32API_MAJOR_VERSION == 1) && (__W32API_MINOR_VERSION <= 5)) - -// The MingW32 w32api version 1.50 and lower don't define these types and methods -// but we need it in the Win32_Asynch_IO.cpp - -extern "C" { - - typedef void *PVOID,*LPVOID; - - /* FIXME for __WIN64 */ - #ifndef __ptr64 - #define __ptr64 - #endif - typedef void* __ptr64 PVOID64; - - // - // Define segement buffer structure for scatter/gather read/write. - // - typedef union _FILE_SEGMENT_ELEMENT { - PVOID64 Buffer; - ULONGLONG Alignment; - }FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT; - - - BOOL WINAPI ReadFileScatter(HANDLE,FILE_SEGMENT_ELEMENT*,DWORD,LPDWORD,LPOVERLAPPED); - - BOOL WINAPI WriteFileGather(HANDLE,FILE_SEGMENT_ELEMENT*,DWORD,LPDWORD,LPOVERLAPPED); -} - -#endif - #include "ace/post.h" #endif /* ACE_CONFIG_WIN32_MINGW_H */ |