diff options
author | Brent Cook <busterb@gmail.com> | 2014-07-10 22:06:10 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-07-21 12:08:18 -0500 |
commit | 5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 (patch) | |
tree | 286f7d12e3647f94bd1e6e8e180a4bf6215a0740 /include/stdio.h | |
parent | 7a4a37cf596697ae96eeb1c555989e6d1a443187 (diff) | |
download | portable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.tar.gz portable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.tar.bz2 portable-5d8a1cf7155130bd8101090d7e1d0c2f90d9b123.zip |
add initial CMake and Visual Studio build support
This moves the compatibility include files from include to
include/compat so we can use the awful MS C compiler
<../include/> trick to emulate the GNU #include_next extension.
This also removes a few old compat files we do not need anymore.
Diffstat (limited to 'include/stdio.h')
-rw-r--r-- | include/stdio.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/stdio.h b/include/stdio.h deleted file mode 100644 index 76bd9da..0000000 --- a/include/stdio.h +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | /* | ||
2 | * Public domain | ||
3 | * stdio.h compatibility shim | ||
4 | */ | ||
5 | |||
6 | #include_next <stdio.h> | ||
7 | |||
8 | #ifndef LIBCRYPTOCOMPAT_STDIO_H | ||
9 | #define LIBCRYPTOCOMPAT_STDIO_H | ||
10 | |||
11 | #ifndef HAVE_ASPRINTF | ||
12 | #include <stdarg.h> | ||
13 | int vasprintf(char **str, const char *fmt, va_list ap); | ||
14 | int asprintf(char **str, const char *fmt, ...); | ||
15 | #endif | ||
16 | |||
17 | #ifdef _WIN32 | ||
18 | |||
19 | void posix_perror(const char *s); | ||
20 | FILE * posix_fopen(const char *path, const char *mode); | ||
21 | int posix_rename(const char *oldpath, const char *newpath); | ||
22 | |||
23 | #ifndef NO_REDEF_POSIX_FUNCTIONS | ||
24 | #define perror(errnum) posix_perror(errnum) | ||
25 | #define fopen(path, mode) posix_fopen(path, mode) | ||
26 | #define rename(oldpath, newpath) posix_rename(oldpath, newpath) | ||
27 | #endif | ||
28 | |||
29 | #endif | ||
30 | |||
31 | #endif | ||