blob: a9e14388c2ed153db7e5a739cbe1feec8d675459 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// -*- C++ -*-
//=============================================================================
/**
* @file string.h
*
* string operations
*
* $Id$
*
* @author Don Hinton <dhinton@ieee.org>
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_STRING_H
#define ACE_OS_INCLUDE_STRING_H
#include "ace/pre.h"
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/stddef.h"
#if !defined (ACE_LACKS_STRING_H)
# include /**/ <string.h>
#endif /* !ACE_LACKS_STRING_H */
#if defined (ACE_LACKS_STRTOK_R_PROTOTYPE) && !defined (_POSIX_SOURCE)
extern "C" char *strtok_r (char *s, const char *delim, char **save_ptr);
#endif /* ACE_LACKS_STRTOK_R_PROTOTYPE */
#if defined (__BORLANDC__)
# define _stricmp stricmp
# define _strnicmp strnicmp
#endif /* __BORLANDC__ */
#if defined (ACE_HAS_CHARPTR_SPRINTF)
# define ACE_SPRINTF_ADAPTER(X) ::strlen (X)
#else
# define ACE_SPRINTF_ADAPTER(X) X
#endif /* ACE_HAS_CHARPTR_SPRINTF */
#if defined (ACE_PSOS_SNARFS_HEADER_INFO)
// Header information snarfed from compiler provided header files
// that are not included because there is already an identically
// named file provided with pSOS, which does not have this info
// from compiler supplied header
extern char *strdup (const char *); // string.h
#endif /* ACE_PSOS_SNARFS_HEADER_INFO */
#include "ace/post.h"
#endif /* ACE_OS_INCLUDE_STRING_H */
|