Skip to content

Commit ca5e0c1

Browse files
fujimotosedsiper
authored andcommitted
tools: xxd-c: include getopt.h through <mk_getopt.h> for portability (#1026)
I can confirm this patch fixes compile errors within tools/xxd-c.c, and allows us to use xxd-c.exe on Windows. % .\bin\debug\xxd-c.exe -i test.conf ... static unsigned char __test_conf[] = { 0x61, 0x69, 0x75, 0x65, 0x6f, }; Signed-off-by: Fujimoto Seiji <fujimoto@clear-code.com>
1 parent 1a5eee4 commit ca5e0c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/xxd-c/xxd-c.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
#include <stdio.h>
2828
#include <stdlib.h>
2929
#include <string.h>
30-
#include <getopt.h>
31-
#include <unistd.h>
30+
#include <monkey/mk_core/mk_getopt.h>
3231

3332
#define XXDC_CHUNK 1024
3433

0 commit comments

Comments
 (0)