summaryrefslogtreecommitdiffstats
path: root/include/c99_compat.h
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-02-26 11:47:46 +0000
committerJose Fonseca <[email protected]>2015-02-26 16:53:16 +0000
commit46110c5d56eb7a2d3c69b2d8565c7631541511b1 (patch)
tree66961cf2e40443ef5d82935d5598ab18194f5a37 /include/c99_compat.h
parentfd090fdadd6dd955e7663d83885d00678f60e133 (diff)
include,auxiliary: Remove support for MSVC older then 2008.
MSVC 2008 (shipped with Windows SDK 7.0.7600) is the oldest we need to support. At least on llvmpipe, gallium/auxiliary, and util modules. For the remaining modules (particular all OpenGL specific code) can be built with MSVC 2013. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'include/c99_compat.h')
-rw-r--r--include/c99_compat.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/c99_compat.h b/include/c99_compat.h
index e5d0ae43a50..f56f6f326f8 100644
--- a/include/c99_compat.h
+++ b/include/c99_compat.h
@@ -33,6 +33,11 @@
* MSVC hacks.
*/
#if defined(_MSC_VER)
+
+# if _MSC_VER < 1500
+# error "Microsoft Visual Studio 2008 or higher required"
+# endif
+
/*
* Visual Studio 2012 will complain if we define the `inline` keyword, but
* actually it only supports the keyword on C++.
@@ -116,11 +121,7 @@
# elif defined(__GNUC__)
# define __func__ __FUNCTION__
# elif defined(_MSC_VER)
-# if _MSC_VER >= 1300
-# define __func__ __FUNCTION__
-# else
-# define __func__ "<unknown>"
-# endif
+# define __func__ __FUNCTION__
# else
# define __func__ "<unknown>"
# endif