add C++ guards

This commit is contained in:
Nils O. Selåsdal
2013-06-19 18:48:45 +02:00
parent 6268e6ac8e
commit b4f9ecafe2
7 changed files with 55 additions and 2 deletions
+7
View File
@@ -1,6 +1,9 @@
#ifndef UCORE_MERSENNE_TWISTER_H
#define UCORE_MERSENNE_TWISTER_H
#ifdef __cplusplus
extern "C" {
#endif
/** Context used for the PRNG*/
#define MT_RAND_N 624
@@ -23,5 +26,9 @@ void mtsrand(int seed, MTRand *r);
*/
unsigned int mtrand(MTRand *r);
#ifdef __cplusplus
}
#endif
#endif