Sfoglia il codice sorgente

add thread safe wrappers

Bill Gesner 5 anni fa
parent
commit
f9296fa499
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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