summaryrefslogtreecommitdiff
path: root/tools/br_ips/ips_patch.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-06-24 13:50:37 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-06-24 13:50:37 -0400
commite786deb7f6677d0eeb760cdc698837692ed92013 (patch)
tree0baec020f875d2fe6e839c2f730d8d17a6be5270 /tools/br_ips/ips_patch.c
parentf18fcb9fbd9ce8f9b0b320b259ab4fe067cde3b0 (diff)
Update to br_ips
Move FATAL_ERROR definition to header Terminate strings read by getline with NUL
Diffstat (limited to 'tools/br_ips/ips_patch.c')
-rw-r--r--tools/br_ips/ips_patch.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/tools/br_ips/ips_patch.c b/tools/br_ips/ips_patch.c
index 506f23ad7..c912474a8 100644
--- a/tools/br_ips/ips_patch.c
+++ b/tools/br_ips/ips_patch.c
@@ -2,24 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
-
-#ifdef _MSC_VER
-
-#define FATAL_ERROR(format, ...) \
-do { \
- fprintf(stderr, format, __VA_ARGS__); \
- exit(1); \
-} while (0)
-
-#else
-
-#define FATAL_ERROR(format, ...) \
-do { \
- fprintf(stderr, format, ##__VA_ARGS__); \
- exit(1); \
-} while (0)
-
-#endif // _MSC_VER
+#include "global.h"
static const char SPLASH[] = "Small IPS patch utility\n"
"Created by PikalaxALT on 23 June 2019 All Rights Reserved\n";