Pārlūkot izejas kodu

add thread safe wrappers

Bill Gesner 5 gadi atpakaļ
vecāks
revīzija
f9296fa499
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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