Compilation fixes, snprintf now supported on VS2015
This commit is contained in:
@@ -5,8 +5,6 @@
|
|||||||
#include "modeledit/modeledit.h"
|
#include "modeledit/modeledit.h"
|
||||||
#if __GNUC__
|
#if __GNUC__
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#else
|
|
||||||
#include "../targets/windows/winbuild.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class AutoDoubleSpinBox: public QDoubleSpinBox
|
class AutoDoubleSpinBox: public QDoubleSpinBox
|
||||||
|
|||||||
@@ -986,6 +986,8 @@ add_definitions(-DCORRECT_NEGATIVE_SHIFTS)
|
|||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
add_definitions(-Wall -Wno-strict-aliasing -Wformat -Wreturn-type -Wunused -Wuninitialized -Wunknown-pragmas -Wno-switch -Wtype-limits)
|
add_definitions(-Wall -Wno-strict-aliasing -Wformat -Wreturn-type -Wunused -Wuninitialized -Wunknown-pragmas -Wno-switch -Wtype-limits)
|
||||||
|
else()
|
||||||
|
add_definitions(-D_TIMESPEC_DEFINED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(targets/simu)
|
add_subdirectory(targets/simu)
|
||||||
|
|||||||
@@ -63,7 +63,9 @@ typedef __int24 int24_t;
|
|||||||
#define CONVERT_PTR_UINT(x) ((uint32_t)(uint64_t)(x))
|
#define CONVERT_PTR_UINT(x) ((uint32_t)(uint64_t)(x))
|
||||||
#define CONVERT_UINT_PTR(x) ((uint32_t*)(uint64_t)(x))
|
#define CONVERT_UINT_PTR(x) ((uint32_t*)(uint64_t)(x))
|
||||||
#else
|
#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 NOINLINE __attribute__ ((noinline))
|
||||||
#define SIMU_SLEEP(x)
|
#define SIMU_SLEEP(x)
|
||||||
#define CONVERT_PTR_UINT(x) ((uint32_t)(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 round(x) floor(x+0.5)
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
#define strncasecmp _tcsnicmp
|
#define strncasecmp _tcsnicmp
|
||||||
#define snprintf _snprintf
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // _DEFINITIONS_H_
|
#endif // _DEFINITIONS_H_
|
||||||
|
|||||||
Reference in New Issue
Block a user