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
[mc] Cleanup #includes
[simgrid.git]
/
include
/
xbt
/
xbt_os_thread.h
diff --git
a/include/xbt/xbt_os_thread.h
b/include/xbt/xbt_os_thread.h
index 539d57befa64c8619521c1288ef9720c5ccd22d1..3c336cba8113f27b3729ac1322ff0bca3afbfaf1 100644
(file)
--- a/
include/xbt/xbt_os_thread.h
+++ b/
include/xbt/xbt_os_thread.h
@@
-1,6
+1,6
@@
/* xbt/xbt_os_thread.h -- Thread portability layer */
/* xbt/xbt_os_thread.h -- Thread portability layer */
-/* Copyright (c) 2007-201
4
. The SimGrid Team.
+/* Copyright (c) 2007-201
5
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-25,12
+25,13
@@
SG_BEGIN_DECL()
/** \brief Thread data type (opaque structure) */
typedef struct xbt_os_thread_ *xbt_os_thread_t;
/** \brief Thread data type (opaque structure) */
typedef struct xbt_os_thread_ *xbt_os_thread_t;
-#include <pthread.h>
#ifdef _XBT_WIN32 /* defined if this is a windows system, 32bits or 64bits) */
#ifdef _XBT_WIN32 /* defined if this is a windows system, 32bits or 64bits) */
-#include <wind
ef
.h>
+#include <wind
ows
.h>
typedef DWORD xbt_os_thread_key_t;
#else /* assume that every non-windows system is POSIX-compatible */
typedef DWORD xbt_os_thread_key_t;
#else /* assume that every non-windows system is POSIX-compatible */
+
+#include <pthread.h>
typedef pthread_key_t xbt_os_thread_key_t;
#endif
typedef pthread_key_t xbt_os_thread_key_t;
#endif