提交 9f6172d6 编写于 作者: B Behdad Esfahbod

Move _POSIX_SOURCE definition

Fixes https://github.com/harfbuzz/harfbuzz/issues/1308
上级 91d77471
...@@ -25,6 +25,15 @@ ...@@ -25,6 +25,15 @@
* Red Hat Author(s): Behdad Esfahbod * Red Hat Author(s): Behdad Esfahbod
*/ */
/* https://github.com/harfbuzz/harfbuzz/issues/1308
* http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
* https://www.oracle.com/technetwork/articles/servers-storage-dev/standardheaderfiles-453865.html
*/
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
#include "hb.hh" #include "hb.hh"
#include "hb-blob.hh" #include "hb-blob.hh"
......
...@@ -59,10 +59,6 @@ ...@@ -59,10 +59,6 @@
# define __EXTENSIONS__ 1 # define __EXTENSIONS__ 1
#endif #endif
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 200809L
#endif
#if defined (_MSC_VER) && defined (HB_DLL_EXPORT) #if defined (_MSC_VER) && defined (HB_DLL_EXPORT)
#define HB_EXTERN __declspec (dllexport) extern #define HB_EXTERN __declspec (dllexport) extern
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册