A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new function: xbt_dynar_sort_strings(), when the content is char*
[simgrid.git]
/
src
/
xbt
/
xbt_main.c
diff --git
a/src/xbt/xbt_main.c
b/src/xbt/xbt_main.c
index
9c718df
..
7c6795f
100644
(file)
--- a/
src/xbt/xbt_main.c
+++ b/
src/xbt/xbt_main.c
@@
-90,7
+90,7
@@
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
static void xbt_preinit(void) {
unsigned int seed = 2147483647;
static void xbt_preinit(void) {
unsigned int seed = 2147483647;
-#ifndef WIN32
+#ifndef
_XBT_
WIN32
xbt_pagesize = sysconf(_SC_PAGESIZE);
#else
SYSTEM_INFO si;
xbt_pagesize = sysconf(_SC_PAGESIZE);
#else
SYSTEM_INFO si;
@@
-115,7
+115,7
@@
static void xbt_preinit(void) {
xbt_dict_preinit();
srand(seed);
xbt_dict_preinit();
srand(seed);
-#ifndef _WIN32
+#ifndef _
XBT_
WIN32
srand48(seed);
#endif
atexit(xbt_postexit);
srand48(seed);
#endif
atexit(xbt_postexit);