For windows compile, moved definve of va_copy

This commit is contained in:
Arthur Ice 2013-05-11 00:46:46 -07:00
parent 9a139a7604
commit b19755a313
2 changed files with 83 additions and 84 deletions

View File

@ -56,10 +56,6 @@ using namespace std;
#include <errno.h> #include <errno.h>
#endif #endif
#ifndef va_copy
#define va_copy(d,s) ((d) = (s))
#endif
static bool WELLRNG_init = false; static bool WELLRNG_init = false;
static int state_i = 0; static int state_i = 0;
static unsigned int STATE[R]; static unsigned int STATE[R];

View File

@ -30,6 +30,9 @@
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#ifndef va_copy
#define va_copy(d,s) ((d) = (s))
#endif
// original source: // original source:
// https://github.com/facebook/folly/blob/master/folly/String.cpp // https://github.com/facebook/folly/blob/master/folly/String.cpp