Skip to content

Commit

Permalink
Removed _MSC_VER <= 1500 checks for Visual Studio 2008 or earlier.
Browse files Browse the repository at this point in the history
Our codebase requires VS2012+ since a while.
  • Loading branch information
ocornut committed Jul 13, 2023
1 parent 863ac31 commit 0e8eb8c
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 32 deletions.
4 changes: 0 additions & 4 deletions backends/imgui_impl_opengl2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
#include "imgui.h"
#ifndef IMGUI_DISABLE
#include "imgui_impl_opengl2.h"
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
#include <stddef.h> // intptr_t
#else
#include <stdint.h> // intptr_t
#endif

// Clang/GCC warnings with -Weverything
#if defined(__clang__)
Expand Down
4 changes: 0 additions & 4 deletions backends/imgui_impl_opengl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,7 @@
#ifndef IMGUI_DISABLE
#include "imgui_impl_opengl3.h"
#include <stdio.h>
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
#include <stddef.h> // intptr_t
#else
#include <stdint.h> // intptr_t
#endif
#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif
Expand Down
4 changes: 0 additions & 4 deletions backends/imgui_impl_sdlrenderer2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@
#include "imgui.h"
#ifndef IMGUI_DISABLE
#include "imgui_impl_sdlrenderer2.h"
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
#include <stddef.h> // intptr_t
#else
#include <stdint.h> // intptr_t
#endif

// Clang warnings with -Weverything
#if defined(__clang__)
Expand Down
4 changes: 0 additions & 4 deletions backends/imgui_impl_sdlrenderer3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@
#include "imgui.h"
#ifndef IMGUI_DISABLE
#include "imgui_impl_sdlrenderer3.h"
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
#include <stddef.h> // intptr_t
#else
#include <stdint.h> // intptr_t
#endif

// Clang warnings with -Weverything
#if defined(__clang__)
Expand Down
4 changes: 0 additions & 4 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -934,11 +934,7 @@ CODE

// System includes
#include <stdio.h> // vsnprintf, sscanf, printf
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
#include <stddef.h> // intptr_t
#else
#include <stdint.h> // intptr_t
#endif

// [Windows] On non-Visual Studio compilers, we default to IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS unless explicitly enabled
#if defined(_WIN32) && !defined(_MSC_VER) && !defined(IMGUI_ENABLE_WIN32_DEFAULT_IME_FUNCTIONS) && !defined(IMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCTIONS)
Expand Down
4 changes: 0 additions & 4 deletions imgui_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ Index of this file:
#include <math.h> // sqrtf, powf, cosf, sinf, floorf, ceilf
#include <stdio.h> // vsnprintf, sscanf, printf
#include <stdlib.h> // NULL, malloc, free, atoi
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
#include <stddef.h> // intptr_t
#else
#include <stdint.h> // intptr_t
#endif

// Visual Studio warnings
#ifdef _MSC_VER
Expand Down
4 changes: 0 additions & 4 deletions imgui_tables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,7 @@ Index of this file:
#include "imgui_internal.h"

// System includes
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
#include <stddef.h> // intptr_t
#else
#include <stdint.h> // intptr_t
#endif

// Visual Studio warnings
#ifdef _MSC_VER
Expand Down
4 changes: 0 additions & 4 deletions imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ Index of this file:
#include "imgui_internal.h"

// System includes
#if defined(_MSC_VER) && _MSC_VER <= 1500 // MSVC 2008 or earlier
#include <stddef.h> // intptr_t
#else
#include <stdint.h> // intptr_t
#endif

//-------------------------------------------------------------------------
// Warnings
Expand Down

0 comments on commit 0e8eb8c

Please sign in to comment.