mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 22:50:19 +02:00
Add missing platform detection in examples/test
This commit is contained in:
@@ -11,11 +11,11 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
#define msgpack_rand() ((double)rand() / RAND_MAX)
|
||||
#else // _MSC_VER
|
||||
#else // _MSC_VER || __MINGW32__
|
||||
#define msgpack_rand() drand48()
|
||||
#endif // _MSC_VER
|
||||
#endif // _MSC_VER || __MINGW32__
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
|
Reference in New Issue
Block a user