src/stdafx.h
changeset 5933 c09d80249412
parent 5843 98248c775972
child 5934 46e88dcb71ff
equal deleted inserted replaced
5932:6f742a8da016 5933:c09d80249412
    12 # include <stdint.h>
    12 # include <stdint.h>
    13 #else
    13 #else
    14 # define INT64_MAX 9223372036854775807LL
    14 # define INT64_MAX 9223372036854775807LL
    15 #endif
    15 #endif
    16 
    16 
    17 #include <stdio.h>
    17 #include <cstdio>
    18 #include <stddef.h>
    18 #include <cstddef>
    19 #include <string.h>
    19 #include <cstring>
    20 #include <stdlib.h>
    20 #include <cstdlib>
    21 #include <limits.h>
    21 #include <climits>
    22 
    22 
    23 // MacOS X will use an NSAlert to display failed assertaions since they're lost unless running from a terminal
    23 // MacOS X will use an NSAlert to display failed assertaions since they're lost unless running from a terminal
    24 // strgen always runs from terminal and don't need a window for asserts
    24 // strgen always runs from terminal and don't need a window for asserts
    25 #if !defined(__APPLE__) || defined(STRGEN)
    25 #if !defined(__APPLE__) || defined(STRGEN)
    26 # include <assert.h>
    26 # include <cassert>
    27 #else
    27 #else
    28 # include "os/macosx/macos.h"
    28 # include "os/macosx/macos.h"
    29 #endif
    29 #endif
    30 
    30 
    31 #if defined(UNIX) || defined(__MINGW32__)
    31 #if defined(UNIX) || defined(__MINGW32__)
   155 # endif
   155 # endif
   156 
   156 
   157 # define strcasecmp stricmp
   157 # define strcasecmp stricmp
   158 # define strncasecmp strnicmp
   158 # define strncasecmp strnicmp
   159 // suppress: warning C4005: 'offsetof' : macro redefinition (VC8)
   159 // suppress: warning C4005: 'offsetof' : macro redefinition (VC8)
   160 # include <stddef.h>
       
   161 #endif /* defined(_MSC_VER) */
   160 #endif /* defined(_MSC_VER) */
   162 
   161 
   163 #if defined(WINCE)
   162 #if defined(WINCE)
   164 # define strdup _strdup
   163 # define strdup _strdup
   165 #endif /* WINCE */
   164 #endif /* WINCE */