Ticket #3439: vs2015.2.diff
File vs2015.2.diff, 2.4 KB (added by , 8 years ago) |
---|
-
source/lib/sysdep/os/win/wdll_delay_load.cpp
1 /* Copyright (c) 201 3Wildfire Games1 /* Copyright (c) 2016 Wildfire Games 2 2 * 3 3 * Permission is hereby granted, free of charge, to any person obtaining 4 4 * a copy of this software and associated documentation files (the … … 36 36 //----------------------------------------------------------------------------- 37 37 // delay loading (modified from VC7 DelayHlp.cpp and DelayImp.h) 38 38 39 #if MSC_VERSION && MSC_VERSION>= 170039 #if MSC_VERSION >= 1700 40 40 // FACILITY_VISUALCPP is already defined in winerror.h in VC2012 41 41 # undef FACILITY_VISUALCPP 42 42 #endif -
source/lib/sysdep/os/win/wposix/wtime.h
1 /* Copyright (c) 201 0Wildfire Games1 /* Copyright (c) 2016 Wildfire Games 2 2 * 3 3 * Permission is hereby granted, free of charge, to any person obtaining 4 4 * a copy of this software and associated documentation files (the … … 58 58 } 59 59 clockid_t; 60 60 61 #if MSC_VERSION >= 1900 62 # include <time.h> 63 #else 61 64 // POSIX realtime clock_* 62 65 struct timespec 63 66 { 64 67 time_t tv_sec; 65 68 long tv_nsec; 66 69 }; 70 #endif 67 71 68 72 extern int nanosleep(const struct timespec* rqtp, struct timespec* rmtp); 69 73 extern int clock_gettime(clockid_t clock, struct timespec* ts); -
source/third_party/mongoose/mongoose.cpp
12 12 // * To avoid debug spew, we disable DEBUG. 13 13 // * Use memcopy to get rid of strict-aliasing warning 14 14 // * Remove use of deprecated 'register' storage class 15 // * Fix build for VS2015 15 16 16 17 #define __STDC_LIMIT_MACROS 17 18 … … 178 179 typedef DWORD pthread_t; 179 180 #define pid_t HANDLE // MINGW typedefs pid_t to int. Using #define here. 180 181 182 #if defined(_MSC_VER) && _MSC_VER >= 1900 183 #include <time.h> 184 #elif defined(_MSC_VER) 181 185 struct timespec { 182 186 long tv_nsec; 183 187 long tv_sec; 184 188 }; 189 #endif 185 190 186 191 static int pthread_mutex_lock(pthread_mutex_t *); 187 192 static int pthread_mutex_unlock(pthread_mutex_t *);