00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef ACE_OS_INCLUDE_OS_STRING_H
00017 #define ACE_OS_INCLUDE_OS_STRING_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "ace/config-all.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #include "ace/os_include/os_stddef.h"
00028
00029
00030 #if defined (ACE_HAS_GNU_CSTRING_H)
00031
00032 # include <cstring>
00033 #else
00034 # if !defined (ACE_LACKS_MEMORY_H)
00035 # include <memory.h>
00036 # endif
00037 # if !defined (ACE_LACKS_STRING_H)
00038 # include <string.h>
00039 # endif
00040 #endif
00041
00042
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047
00048
00049 #if !defined (ACE_HAS_STRERROR)
00050 # if defined (ACE_HAS_SYS_ERRLIST)
00051 extern char *sys_errlist[];
00052 # define strerror(err) sys_errlist[err]
00053 # else
00054 # define strerror(err) "strerror is unsupported"
00055 # endif
00056 #endif
00057
00058 #if defined (ACE_LACKS_STRTOK_R_PROTOTYPE) && !defined (_POSIX_SOURCE)
00059 char *strtok_r (char *s, const char *delim, char **save_ptr);
00060 #endif
00061
00062 #if defined (__BORLANDC__) && (__BORLANDC__ < 0x560)
00063 # define _stricmp stricmp
00064 # define _strnicmp strnicmp
00065 #endif
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070
00071 #include "ace/post.h"
00072 #endif