genericopenlibs/cppstdlib/stl/stlport/string.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /*
       
     2  * Copyright (c) 1999
       
     3  * Boris Fomitchev
       
     4  *
       
     5  * This material is provided "as is", with absolutely no warranty expressed
       
     6  * or implied. Any use is at your own risk.
       
     7  *
       
     8  * Permission to use or copy this software for any purpose is hereby granted
       
     9  * without fee, provided the above notices are retained on all copies.
       
    10  * Permission to modify the code and to distribute modified code is granted,
       
    11  * provided the above notices are retained, and a notice that the code was
       
    12  * modified is included with the above copyright notice.
       
    13  *
       
    14  */
       
    15 
       
    16 /* Workaround for a "misbehaviour" when compiling resource scripts using
       
    17  * eMbedded Visual C++. The standard .rc file includes windows header files,
       
    18  * which in turn include string.h, which results in warnings and errors
       
    19  */
       
    20 #ifndef _STLP_STRING_H
       
    21 
       
    22 #if !defined (RC_INVOKED)
       
    23 
       
    24 #  ifndef _STLP_OUTERMOST_HEADER_ID
       
    25 #    define _STLP_OUTERMOST_HEADER_ID 0x269
       
    26 #    include <stl/_prolog.h>
       
    27 #  elif (_STLP_OUTERMOST_HEADER_ID == 0x269) && !defined (_STLP_DONT_POP_HEADER_ID)
       
    28 #    define _STLP_DONT_POP_HEADER_ID
       
    29 #    define _STLP_STRING_H
       
    30 #  endif
       
    31 
       
    32 #  if defined(_STLP_WCE_EVC3)
       
    33 struct _exception;
       
    34 #  endif
       
    35 #  if (_STLP_OUTERMOST_HEADER_ID != 0x269) || defined (_STLP_DONT_POP_HEADER_ID)
       
    36 #    include _STLP_NATIVE_C_HEADER(string.h)
       
    37 #  else
       
    38 #    if defined (__BORLANDC__)
       
    39 #      include _STLP_NATIVE_CPP_C_HEADER(_str.h)
       
    40 #    else
       
    41 #      include _STLP_NATIVE_C_HEADER(string.h)
       
    42 #    endif
       
    43 
       
    44 #    if (_STLP_OUTERMOST_HEADER_ID == 0x269)
       
    45 #      if defined (__BORLANDC__) && defined (_STLP_IMPORT_VENDOR_CSTD)
       
    46 #        include <using/cstring>
       
    47 #      endif /* BORLAND */
       
    48 #    endif
       
    49 #  endif
       
    50 
       
    51 #  if (_STLP_OUTERMOST_HEADER_ID == 0x269)
       
    52 #    if !defined (_STLP_DONT_POP_HEADER_ID)
       
    53 #      include <stl/_epilog.h>
       
    54 #      undef _STLP_OUTERMOST_HEADER_ID
       
    55 #    else
       
    56 #      undef _STLP_DONT_POP_HEADER_ID
       
    57 #    endif
       
    58 #  endif
       
    59 #endif /* RC_INVOKED */
       
    60 #endif /* _STLP_STRING_H */