瀏覽代碼

Define __USE_TIME_BITS64 when it is necessary.

Glibc and musl both defines this macro.
Glibc defines it for 64-bit time_t on 32-bit arch
and for 64-bit architectures.

Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
Dmitry Chestnykh 1 年之前
父節點
當前提交
a1e7b2cf70
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/features.h

+ 4 - 0
include/features.h

@@ -437,4 +437,8 @@
 # include <libc-internal.h>
 #endif
 
+#if defined(__UCLIBC_USE_TIME64__) || __TARGET_ARCH_BITS__ == 64
+#define __USE_TIME_BITS64 1
+#endif
+
 #endif	/* features.h  */