]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/splines/q_shared.h
Fix compilation
[xonotic/netradiant.git] / libs / splines / q_shared.h
index 6cad80bc97eec9ac4f5e2b8cbaa6e7a1e57874d9..6ebfb99fa3ed25f8f1c2459de5b52806ac4b9d25 100644 (file)
@@ -228,7 +228,7 @@ typedef enum {
 #define MAX_QINT            0x7fffffff
 #define MIN_QINT            ( -MAX_QINT - 1 )
 
-#ifndef max
+#if !defined(__cplusplus) && !defined(max)
 #define max( x, y ) ( ( ( x ) > ( y ) ) ? ( x ) : ( y ) )
 #define min( x, y ) ( ( ( x ) < ( y ) ) ? ( x ) : ( y ) )
 #endif