diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-19 03:48:25 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-19 03:48:25 +0000 |
commit | 869c2154e4d9234bb53fca02c04be553e6496436 (patch) | |
tree | a37e97abbf2beb88e802ff123c1c92767e873eec | |
parent | 652e3f652c2f1616e32a1843db53852bfb6db1d2 (diff) | |
download | ATCD-869c2154e4d9234bb53fca02c04be553e6496436.tar.gz |
Added Windows CE flags.
-rw-r--r-- | ace/OS.h | 28 | ||||
-rw-r--r-- | ace/config-win32-common.h | 2 | ||||
-rw-r--r-- | ace/streams.h | 2 |
3 files changed, 26 insertions, 6 deletions
@@ -342,7 +342,7 @@ #define ACE_NON_BLOCKING_BUG_DELAY 35000 #endif /* ACE_NON_BLOCKING_BUG_DELAY */ -#if defined (_DEBUG) +#if defined (_DEBUG) && !defined (ACE_HAS_WINCE) class ACE_No_Heap_Check { public: @@ -923,7 +923,9 @@ extern "C" pthread_t pthread_self (void); #define ACE_TRACE(X) ACE_Trace ____ (X, __LINE__, __FILE__) #endif /* ACE_NTRACE */ +#if !defined (ACE_HAS_WINCE) #include /**/ <time.h> +#endif /* ACE_HAS_WINCE */ #if defined (ACE_NEEDS_SYSTIME_H) // Some platforms may need to include this, but I suspect that most @@ -1413,7 +1415,7 @@ struct strrecvfd {}; #if defined (ACE_HAS_UNICODE) # if defined (ACE_HAS_STANDARD_CPP_LIBRARY) && (ACE_HAS_STANDARD_CPP_LIBRARY != 0) # include /**/ <cwchar> -# elif !defined (__BORLANDC__) /* ACE_HAS_STANDARD_CPP_LIBRARY */ +# elif !defined (__BORLANDC__) && !defined (ACE_HAS_WINCE) /* ACE_HAS_STANDARD_CPP_LIBRARY */ # include /**/ <wchar.h> # endif /* ACE_HAS_STANDARD_CPP_LIBRARY */ #elif defined (ACE_HAS_XPG4_MULTIBYTE_CHAR) @@ -1525,6 +1527,9 @@ struct cancel_state // e.g., PTHREAD_CANCEL_DEFERRED and PTHREAD_CANCEL_ASYNCHRONOUS. }; +#if defined (ACE_HAS_WINCE) +#include /**/ <types.h> +#else /* ! ACE_HAS_WINCE */ #if defined (ACE_LACKS_SYS_TYPES_H) typedef unsigned char u_char; typedef unsigned short u_short; @@ -1540,6 +1545,7 @@ struct cancel_state #endif /* ACE_LACKS_SYS_TYPES_H */ #include /**/ <sys/stat.h> +#endif /*ACE_HAS_WINCE */ #if defined (ACE_HAS_THREADS) @@ -2128,16 +2134,18 @@ protected: #endif /* ACE_HAS_THREADS */ // Standard C Library includes +#if !defined (ACE_HAS_WINCE) # include /**/ <assert.h> +# include /**/ <stdio.h> +# include /**/ <new.h> +# include /**/ <signal.h> +# include /**/ <errno.h> +#endif /* ACE_HAS_WINCE *. # include /**/ <limits.h> // NOTE: stdarg.h must be #included before stdio.h on LynxOS. # include /**/ <stdarg.h> -# include /**/ <stdio.h> -# include /**/ <new.h> # include /**/ <ctype.h> -# include /**/ <signal.h> # include /**/ <string.h> -# include /**/ <errno.h> # include /**/ <stdlib.h> # include /**/ <fcntl.h> # include /**/ <float.h> @@ -2152,6 +2160,10 @@ protected: #include "ace/streams.h" #endif /* ACE_HAS_MINIMUM_IOSTREAMH_INCLUSION */ +#if !defined (ACE_HAS_WINCE) +#include /**/ <fcntl.h> +#endif /* ACE_HAS_WINCE */ + // This must come after signal.h is #included. #if defined (SCO) #define SIGIO SIGPOLL @@ -2323,7 +2335,9 @@ struct utsname #endif /* !STRICT */ #endif /* ACE_HAS_STRICT */ +#if !defined (ACE_HAS_WINCE) #include /**/ <sys/timeb.h> +#endif /* ACE_HAS_WINCE */ // The following defines are used by the ACE Name Server... #if !defined (ACE_DEFAULT_NAMESPACE_DIR_W) @@ -2493,10 +2507,12 @@ PAGE_NOCACHE */ // #define ENAMETOOLONG WSAENAMETOOLONG // #define ENOTEMPTY WSAENOTEMPTY +#if !defined (ACE_HAS_WINCE) #include /**/ <time.h> #include /**/ <direct.h> #include /**/ <process.h> #include /**/ <io.h> +#endif /* ACE_HAS_WINCE */ #if defined (__BORLANDC__) #include <fcntl.h> diff --git a/ace/config-win32-common.h b/ace/config-win32-common.h index 10fdf601512..0d45b23e515 100644 --- a/ace/config-win32-common.h +++ b/ace/config-win32-common.h @@ -267,7 +267,9 @@ #endif /* __ACE_INLINE__ */ #ifdef _DEBUG +#if !defined (ACE_HAS_WINCE) #include /**/ <crtdbg.h> +#endif /* ACE_HAS_WINCE */ #else // If we are making a release, and the user has not specified // inline directives, we will default to inline diff --git a/ace/streams.h b/ace/streams.h index c6bbd955073..daaa68d6f73 100644 --- a/ace/streams.h +++ b/ace/streams.h @@ -85,6 +85,7 @@ using std::oct; #else /* ACE_HAS_STANDARD_CPP_LIBRARY */ +#if !defined (ACE_HAS_WINCE) #include /**/ <fstream.h> #include /**/ <iostream.h> @@ -98,6 +99,7 @@ using std::oct; #endif /* _MSC_VER */ #include /**/ <strstrea.h> // VSB #endif /* ACE_WIN32 */ +#endif /* ACE_HAS_WINCE */ #endif /* ACE_HAS_STANDARD_CPP_LIBRARY */ |