Explorar o código

add thread safe wrappers

Bill Gesner %!s(int64=5) %!d(string=hai) anos
pai
achega
f9296fa499
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      lfs_util.h

+ 3 - 0
lfs_util.h

@@ -43,6 +43,9 @@ extern "C"
 {
 #endif
 
+#ifndef LFS_THREAD_SAFE
+#define LFS_THREAD_SAFE 0
+#endif
 
 // Macros, may be replaced by system specific wrappers. Arguments to these
 // macros must not have side-effects as the macros can be removed for a smaller