Compilation fixes, snprintf now supported on VS2015

This commit is contained in:
Andre Bernet
2016-06-30 23:39:04 +02:00
parent c777af2b72
commit b48e14eeb9
3 changed files with 5 additions and 4 deletions
-2
View File
@@ -5,8 +5,6 @@
#include "modeledit/modeledit.h"
#if __GNUC__
#include <math.h>
#else
#include "../targets/windows/winbuild.h"
#endif
class AutoDoubleSpinBox: public QDoubleSpinBox
+2
View File
@@ -986,6 +986,8 @@ add_definitions(-DCORRECT_NEGATIVE_SHIFTS)
if(NOT WIN32)
add_definitions(-Wall -Wno-strict-aliasing -Wformat -Wreturn-type -Wunused -Wuninitialized -Wunknown-pragmas -Wno-switch -Wtype-limits)
else()
add_definitions(-D_TIMESPEC_DEFINED)
endif()
add_subdirectory(targets/simu)
+3 -2
View File
@@ -63,7 +63,9 @@ typedef __int24 int24_t;
#define CONVERT_PTR_UINT(x) ((uint32_t)(uint64_t)(x))
#define CONVERT_UINT_PTR(x) ((uint32_t*)(uint64_t)(x))
#else
#define FORCEINLINE inline __attribute__ ((always_inline))
#if !defined(_MSC_VER) || (_MSC_VER < 1200)
#define FORCEINLINE inline __attribute__ ((always_inline))
#endif
#define NOINLINE __attribute__ ((noinline))
#define SIMU_SLEEP(x)
#define CONVERT_PTR_UINT(x) ((uint32_t)(x))
@@ -74,7 +76,6 @@ typedef __int24 int24_t;
#define round(x) floor(x+0.5)
#define strcasecmp _stricmp
#define strncasecmp _tcsnicmp
#define snprintf _snprintf
#endif
#endif // _DEFINITIONS_H_