From 5d8a1cf7155130bd8101090d7e1d0c2f90d9b123 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 10 Jul 2014 22:06:10 -0500 Subject: 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. --- include/stdio.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 include/stdio.h (limited to 'include/stdio.h') 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 @@ -/* - * Public domain - * stdio.h compatibility shim - */ - -#include_next - -#ifndef LIBCRYPTOCOMPAT_STDIO_H -#define LIBCRYPTOCOMPAT_STDIO_H - -#ifndef HAVE_ASPRINTF -#include -int vasprintf(char **str, const char *fmt, va_list ap); -int asprintf(char **str, const char *fmt, ...); -#endif - -#ifdef _WIN32 - -void posix_perror(const char *s); -FILE * posix_fopen(const char *path, const char *mode); -int posix_rename(const char *oldpath, const char *newpath); - -#ifndef NO_REDEF_POSIX_FUNCTIONS -#define perror(errnum) posix_perror(errnum) -#define fopen(path, mode) posix_fopen(path, mode) -#define rename(oldpath, newpath) posix_rename(oldpath, newpath) -#endif - -#endif - -#endif -- cgit v1.2.3-55-g6feb