diff options
Diffstat (limited to 'test/hanja.c')
-rw-r--r-- | test/hanja.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/hanja.c b/test/hanja.c index 78f231f..060ae58 100644 --- a/test/hanja.c +++ b/test/hanja.c @@ -3,6 +3,10 @@ #include "../hangul/hangul.h" +#ifndef TEST_HANJA_TXT +#define NULL +#endif + int main(int argc, char *argv[]) { @@ -11,6 +15,8 @@ main(int argc, char *argv[]) if (argc > 1) hanja_table_file = argv[1]; + else + hanja_table_file = TEST_HANJA_TXT; HanjaTable *table; table = hanja_table_load(hanja_table_file); |