aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtcc.c b/libtcc.c
index 43a07ef..092c0ba 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -1020,7 +1020,7 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)
file->line_num = 0;
#ifdef TCC_TARGET_MACHO
- if (0 == obj_type && 0 == strcmp(tcc_fileextension(filename), "dylib"))
+ if (0 == obj_type && 0 == strcmp(tcc_fileextension(filename), ".dylib"))
obj_type = AFF_BINTYPE_DYN;
#endif