diff --git a/companion/src/shared/autodoublespinbox.h b/companion/src/shared/autodoublespinbox.h index 8637bb57c..2d39cd629 100644 --- a/companion/src/shared/autodoublespinbox.h +++ b/companion/src/shared/autodoublespinbox.h @@ -5,8 +5,6 @@ #include "modeledit/modeledit.h" #if __GNUC__ #include -#else - #include "../targets/windows/winbuild.h" #endif class AutoDoubleSpinBox: public QDoubleSpinBox diff --git a/radio/src/CMakeLists.txt b/radio/src/CMakeLists.txt index a5be075c7..6aee08dcd 100644 --- a/radio/src/CMakeLists.txt +++ b/radio/src/CMakeLists.txt @@ -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) diff --git a/radio/src/definitions.h b/radio/src/definitions.h index 7a9deddaf..5ae96c16e 100644 --- a/radio/src/definitions.h +++ b/radio/src/definitions.h @@ -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_