diff options
author | Paul Cercueil <paul.cercueil@analog.com> | 2016-11-09 11:40:17 +0100 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-11-11 11:40:03 -0800 |
commit | fd3227859623f8f2a294ce1b8c38489eb1415eea (patch) | |
tree | 2e0f2521c58571e14b29be2bf872cca0f7ca6980 /cmake | |
parent | 9fd93c0a940feb6afb7ff587c8b3b17920aedf12 (diff) |
Add config check for Xrand48() functions
This fixes some compile errors under MinGW, which does not provide those
functions.
Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/msvc/config.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cmake/msvc/config.h b/cmake/msvc/config.h index db0088e3a9..d3daed1587 100644 --- a/cmake/msvc/config.h +++ b/cmake/msvc/config.h @@ -61,7 +61,4 @@ static inline float rintf(float x){return (x > 0.0f)? floorf(x + 0.5f) : ceilf(x static inline long int random (void) { return rand(); } static inline void srandom (unsigned int seed) { srand(seed); } -#define srand48(seed) srand(seed) -#define drand48() (double(rand()) / RAND_MAX) - #endif // _MSC_CONFIG_H_ ] |