comparison src/dmlib.h @ 956:d4e411192238

Remove check for GCC >= 3.x, it's only sane to support 4+.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 27 Feb 2015 01:04:02 +0200
parents 6b2f41844580
children 985225a93aeb
comparison
equal deleted inserted replaced
955:6b2f41844580 956:d4e411192238
115 } DMFixedPoint32; 115 } DMFixedPoint32;
116 116
117 117
118 /* Macros for fixed point math 118 /* Macros for fixed point math
119 */ 119 */
120 #if __GNUC__ >= 3 120 #define FP_SET(a, k) a.dw = k ## ULL
121 # define FP_SET(a, k) a.dw = k ## ULL
122 #else
123 # define FP_SET(a, k) a.dw = k
124 #endif
125
126 #define FP_CONV(a, k) a.dw = (k) 121 #define FP_CONV(a, k) a.dw = (k)
127 122
128 #ifndef SDL_BYTEORDER 123 #ifndef SDL_BYTEORDER
129 # error Undefined byteorder! 124 # error Undefined byteorder!
130 #endif 125 #endif