mirror of
https://github.com/facebook/zstd
synced 2026-08-22 22:32:07 -04:00
Merge pull request #4218 from facebook/externC
Move #includes out of `extern "C"` blocks
This commit is contained in:
commit
a610550e2c
37 changed files with 157 additions and 304 deletions
|
|
@ -20,6 +20,9 @@
|
|||
#include <sys/types.h> /* stat, utime */
|
||||
#include <sys/stat.h> /* stat, chmod */
|
||||
#include "../lib/common/mem.h" /* U64 */
|
||||
#if !(defined(_MSC_VER) || defined(__MINGW32__) || defined (__MSVCRT__))
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
/*-************************************************************
|
||||
* Fix fseek()'s 2GiB barrier with MSVC, macOS, *BSD, MinGW
|
||||
|
|
@ -119,7 +122,6 @@ int UTIL_requireUserConfirmation(const char* prompt, const char* abortMsg, const
|
|||
#define STRDUP(s) _strdup(s)
|
||||
#else
|
||||
#define PATH_SEP '/'
|
||||
#include <libgen.h>
|
||||
#define STRDUP(s) strdup(s)
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue