core/platform.h

Go to the documentation of this file.
00001 
00011 #ifndef _PLATFORM_H
00012 #define _PLATFORM_H
00013 
00014 #ifdef WIN32
00015 #if 0 /* not cooperating yet, needed for GLPATH expansion in exec_init() -mh*/
00016 #include <Windows.h>
00017 #endif
00018 #define int64 __int64 
00019 #define FMT_INT64 "I64" 
00020 #define atoi64 _atoi64 
00021 #include <float.h>
00022 #include <ymath.h>
00023 #define INFINITY _Inf._Double
00024 #define isnan _isnan
00025 #define isfinite _finite
00026 #define R_OK (4)
00027 #define W_OK (2)
00028 #define X_OK (0)
00029 #define F_OK (0)
00030 #else
00031 #define int64 long long 
00032 #define FMT_INT64 "ll" 
00033 #define atoi64 atoll    
00034 #define stricmp strcasecmp  
00035 #define strnicmp strncasecmp 
00036 #define min(A,B) ((A)<(B)?(A):(B)) 
00037 #define max(A,B) ((A)>(B)?(A):(B)) 
00038 #endif
00039 
00040 #ifdef I64
00041 #define NATIVE int64    
00042 #else
00043 #define NATIVE int32    
00044 #endif
00045 
00046 #endif
00047 

GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy