Scribus
Open source desktop publishing at your fingertips
sclimits.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef SCLIMITS_H
8 #define SCLIMITS_H
9 
10 #if defined(_MSC_VER)
11 #if !defined(_USE_MATH_DEFINES)
12  #define _USE_MATH_DEFINES
13 #endif
14 #define NOMINMAX
15 #endif
16 
17 #include <limits>
18 
19 #ifdef _WIN32
20 #ifdef min
21  #undef min
22 #endif
23 #ifdef max
24  #undef max
25 #endif
26 #endif
27 
28 #endif