sl@0: /* sl@0: * Copyright (c) 1999 sl@0: * Boris Fomitchev sl@0: * sl@0: * This material is provided "as is", with absolutely no warranty expressed sl@0: * or implied. Any use is at your own risk. sl@0: * sl@0: * Permission to use or copy this software for any purpose is hereby granted sl@0: * without fee, provided the above notices are retained on all copies. sl@0: * Permission to modify the code and to distribute modified code is granted, sl@0: * provided the above notices are retained, and a notice that the code was sl@0: * modified is included with the above copyright notice. sl@0: * sl@0: */ sl@0: sl@0: /* Workaround for a "misbehaviour" when compiling resource scripts using sl@0: * eMbedded Visual C++. The standard .rc file includes windows header files, sl@0: * which in turn include stdlib.h, which results in warnings and errors sl@0: */ sl@0: #if !defined (RC_INVOKED) sl@0: sl@0: # if !defined (_STLP_OUTERMOST_HEADER_ID) sl@0: # define _STLP_OUTERMOST_HEADER_ID 0x265 sl@0: # include sl@0: # elif (_STLP_OUTERMOST_HEADER_ID == 0x265) && !defined (_STLP_DONT_POP_HEADER_ID) sl@0: # define _STLP_DONT_POP_HEADER_ID sl@0: # endif sl@0: sl@0: # if defined (_MSC_VER) || (defined (__GNUC__) && defined (__MINGW32__)) || \ sl@0: defined (__BORLANDC__) || defined (__DMC__) || \ sl@0: (defined (__HP_aCC) && defined (_REENTRANT)) sl@0: /* Native stdlib.h contains errno macro definition making inclusion of native sl@0: * errno.h in STLport errno.h impossible. We are then forced to include errno.h sl@0: * first. sl@0: */ sl@0: # include "errno.h" sl@0: # endif sl@0: sl@0: /* sl@0: forward-declaration for _exception struct; prevents warning message sl@0: ../include/stdlib.h(817) : warning C4115: '_exception' : named type definition in parentheses sl@0: */ sl@0: # if defined(_STLP_WCE_EVC3) sl@0: struct _exception; sl@0: # endif sl@0: sl@0: # include _STLP_NATIVE_C_HEADER(stdlib.h) sl@0: sl@0: /* on evc3/evc4 including stdlib.h also defines setjmp macro */ sl@0: # if defined (_STLP_WCE) sl@0: # define _STLP_NATIVE_SETJMP_H_INCLUDED sl@0: # endif sl@0: sl@0: # if (_STLP_OUTERMOST_HEADER_ID == 0x265) sl@0: # if ! defined (_STLP_DONT_POP_HEADER_ID) sl@0: # include sl@0: # undef _STLP_OUTERMOST_HEADER_ID sl@0: # else sl@0: # undef _STLP_DONT_POP_HEADER_ID sl@0: # endif sl@0: # endif sl@0: sl@0: #endif /* RC_INVOKED */ sl@0: sl@0: /* sl@0: Local Variables: sl@0: mode:C++ sl@0: End: sl@0: */