Merge pull request #434 from OPNA2608/cmake/standard_or_bust

Forbid C++ standard extensions
This commit is contained in:
tildearrow 2022-05-07 18:34:18 -05:00 committed by GitHub
commit a27d68ad1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 6 deletions

View File

@ -11,6 +11,7 @@ if (APPLE)
endif()
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_PROJECT_VERSION_MAJOR 0)
set(CMAKE_PROJECT_VERSION_MINOR 6)

View File

@ -53,7 +53,7 @@ typedef unsigned long SAAPARAM;
#endif
#ifdef _WIN32
#define SAAAPI _stdcall
#define SAAAPI __stdcall
#else
#define SAAAPI
#endif

View File

@ -30,7 +30,7 @@ typedef struct
} ENVDATA;
#ifdef WIN32
extern "C" void _stdcall OutputDebugStringA (char*);
extern "C" void __stdcall OutputDebugStringA (char*);
#endif
#endif

View File

@ -44,10 +44,7 @@ SOFTWARE.
#if defined (__EMSCRIPTEN__) // EMSCRIPTEN
#include <emscripten.h>
#endif // EMSCRIPTEN
#if defined(__WIN32__) || defined(_WIN32)
#ifndef WIN32
#define WIN32
#endif // WIN32
#ifdef WIN32
#define stat _stat
#define stricmp _stricmp
#include <cctype>

View File

@ -581,6 +581,12 @@ ImGuiFontStudio is using also ImGuiFileDialog.
#ifndef IMGUIFILEDIALOG_H
#define IMGUIFILEDIALOG_H
#if defined(__WIN32__) || defined(_WIN32)
#ifndef WIN32
#define WIN32
#endif // WIN32
#endif // defined(__WIN32__) || defined(_WIN32)
#define IMGUIFILEDIALOG_VERSION "v0.6.4"
#ifndef CUSTOM_IMGUIFILEDIALOG_CONFIG