From a8bc2af649e9fbfb60f827a46e749c1b65b0d836 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 22 Feb 2015 18:02:54 +0100 Subject: [PATCH] Removed support for Borland C++. --- include/GLFW/glfw3.h | 4 ++-- src/win32_init.c | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 94fe4aed..07393dfa 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -106,8 +106,8 @@ extern "C" { /* Under Windows, we need WINGDIAPI defined */ #if !defined(WINGDIAPI) && defined(_WIN32) - #if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__POCC__) - /* Microsoft Visual C++, Borland C++ Builder and Pelles C */ + #if defined(_MSC_VER) || defined(__POCC__) + /* Microsoft Visual C++ and Pelles C */ #define WINGDIAPI __declspec(dllimport) #elif defined(__LCC__) /* LCC-Win32 */ diff --git a/src/win32_init.c b/src/win32_init.c index 964b23aa..bf049a70 100644 --- a/src/win32_init.c +++ b/src/win32_init.c @@ -30,11 +30,6 @@ #include #include -#ifdef __BORLANDC__ -// With the Borland C++ compiler, we want to disable FPU exceptions -#include -#endif // __BORLANDC__ - #if defined(_GLFW_USE_OPTIMUS_HPG) @@ -335,12 +330,6 @@ int _glfwPlatformInit(void) if (_glfw_SetProcessDPIAware) _glfw_SetProcessDPIAware(); -#ifdef __BORLANDC__ - // With the Borland C++ compiler, we want to disable FPU exceptions - // (this is recommended for OpenGL applications under Windows) - _control87(MCW_EM, MCW_EM); -#endif - if (!_glfwRegisterWindowClass()) return GL_FALSE; @@ -381,8 +370,6 @@ const char* _glfwPlatformGetVersionString(void) " MinGW" #elif defined(_MSC_VER) " VisualC" -#elif defined(__BORLANDC__) - " BorlandC" #endif #if defined(_GLFW_BUILD_DLL) " DLL"