Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 4401 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | 36 | ||
37 | #define INT_TO_FIXED(x) ((GLfixed) ((x) << 16)) |
37 | #define INT_TO_FIXED(x) ((GLfixed) ((x) << 16)) |
Line 38... | Line 38... | ||
38 | #define FLOAT_TO_FIXED(x) ((GLfixed) ((x) * 65536.0)) |
38 | #define FLOAT_TO_FIXED(x) ((GLfixed) ((x) * 65536.0)) |
- | 39 | ||
39 | 40 | #if defined(_MSC_VER) |
|
40 | #if defined(_MSC_VER) |
41 | #if _MSC_VER < 1800 /* Not required on VS2013 and above. */ |
41 | /* Oddly, the fpclassify() function doesn't exist in such a form |
42 | /* Oddly, the fpclassify() function doesn't exist in such a form |
42 | * on MSVC. This is an implementation using slightly different |
43 | * on MSVC. This is an implementation using slightly different |
43 | * lower-level Windows functions. |
44 | * lower-level Windows functions. |
Line 68... | Line 69... | ||
68 | * that the pattern is not treated like a number. |
69 | * that the pattern is not treated like a number. |
69 | */ |
70 | */ |
70 | return FP_NAN; |
71 | return FP_NAN; |
71 | } |
72 | } |
72 | } |
73 | } |
- | 74 | #endif /* _MSC_VER < 1800 */ |
|
Line 73... | Line 75... | ||
73 | 75 | ||
74 | #elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \ |
76 | #elif defined(__APPLE__) || defined(__CYGWIN__) || defined(__FreeBSD__) || \ |
75 | defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \ |
77 | defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || \ |
76 | (defined(__sun) && defined(__C99FEATURES__)) || defined(__MINGW32__) || \ |
78 | (defined(__sun) && defined(__C99FEATURES__)) || defined(__MINGW32__) || \ |