浏览代码

add thread safe wrappers

Bill Gesner 5 年之前
父节点
当前提交
f9296fa499
共有 1 个文件被更改,包括 3 次插入0 次删除
  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