diff options
Diffstat (limited to 'tools/preproc/preproc.h')
-rw-r--r-- | tools/preproc/preproc.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/preproc/preproc.h b/tools/preproc/preproc.h index c9e1a8414..926748efd 100644 --- a/tools/preproc/preproc.h +++ b/tools/preproc/preproc.h @@ -25,20 +25,20 @@ #ifdef _MSC_VER -#define FATAL_ERROR(format, ...) \ -do \ -{ \ - fprintf(stderr, format, __VA_ARGS__); \ - exit(1); \ +#define FATAL_ERROR(format, ...) \ +do \ +{ \ + std::fprintf(stderr, format, __VA_ARGS__); \ + std::exit(1); \ } while (0) #else -#define FATAL_ERROR(format, ...) \ -do \ -{ \ - fprintf(stderr, format, ##__VA_ARGS__); \ - exit(1); \ +#define FATAL_ERROR(format, ...) \ +do \ +{ \ + std::fprintf(stderr, format, ##__VA_ARGS__); \ + std::exit(1); \ } while (0) #endif // _MSC_VER |