diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2022-10-13 09:44:06 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2022-10-13 09:44:06 +0900 |
commit | b7d3f7c7740f28521fb9a9e70eeb0ec546e659f3 (patch) | |
tree | 53b057cd45e50ffb7a7c948cbb491108f2192c5f | |
parent | ed7fe564964851327eabd40d72600f6090cc02ad (diff) | |
parent | df6aec566ce450e4e0702e4784569642f2bc6703 (diff) | |
download | libassuan-b7d3f7c7740f28521fb9a9e70eeb0ec546e659f3.tar.gz |
Merge branch 'master' into gniibe/t6236
-rw-r--r-- | src/assuan.h.in | 6 | ||||
-rw-r--r-- | src/mkheader.c | 27 |
2 files changed, 3 insertions, 30 deletions
diff --git a/src/assuan.h.in b/src/assuan.h.in index e993926..cf79970 100644 --- a/src/assuan.h.in +++ b/src/assuan.h.in @@ -32,8 +32,8 @@ #define ASSUAN_H #include <stdio.h> -@include:sys/types.h@ -@include:unistd.h@ +#include <sys/types.h> +#include <unistd.h> #include <stdarg.h> #ifndef _ASSUAN_NO_SOCKET_WRAPPER @@ -602,8 +602,6 @@ pid_t __assuan_waitpid (assuan_context_t ctx, pid_t pid, extern struct assuan_system_hooks _assuan_system_npth; #define ASSUAN_SYSTEM_NPTH &_assuan_system_npth -@include:w32ce-add@ - #ifdef __cplusplus } #endif diff --git a/src/mkheader.c b/src/mkheader.c index b151ca0..c081e09 100644 --- a/src/mkheader.c +++ b/src/mkheader.c @@ -84,24 +84,6 @@ write_special (const char *fname, int lnr, const char *tag) else include_file (fname, lnr, "posix-includes.inc.h"); } - else if (!strcmp (tag, "include:sys/types.h")) - { - if (!strcmp (host_os, "mingw32ce")) - fputs ("#ifdef __MINGW32CE__\n" - "# include <sys/types.h>\n" - "#endif\n", stdout); - else - fputs ("#include <sys/types.h>\n", stdout); - } - else if (!strcmp (tag, "include:unistd.h")) - { - if (!strcmp (host_os, "mingw32ce")) - fputs ("#ifdef __MINGW32CE__\n" - "# include <unistd.h>\n" - "#endif\n", stdout); - else - fputs ("#include <unistd.h>\n", stdout); - } else if (!strcmp (tag, "include:types")) { if (strstr (host_os, "mingw32")) @@ -111,9 +93,7 @@ write_special (const char *fname, int lnr, const char *tag) } else if (!strcmp (tag, "include:fd-t")) { - if (!strcmp (host_os, "mingw32ce")) - include_file (fname, lnr, "w32ce-fd-t.inc.h"); - else if (strstr (host_os, "mingw32")) + if (strstr (host_os, "mingw32")) include_file (fname, lnr, "w32-fd-t.inc.h"); else include_file (fname, lnr, "posix-fd-t.inc.h"); @@ -125,11 +105,6 @@ write_special (const char *fname, int lnr, const char *tag) else include_file (fname, lnr, "posix-sock-nonce.inc.h"); } - else if (!strcmp (tag, "include:w32ce-add")) - { - if (!strcmp (host_os, "mingw32ce")) - include_file (fname, lnr, "w32ce-add.h"); - } else if (!strcmp (tag, "version")) { putchar ('\"'); |