diff options
author | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2015-10-17 00:28:30 +0300 |
---|---|---|
committer | Hedayat Vatankhah <hedayat.fwd@gmail.com> | 2015-10-17 00:32:09 +0300 |
commit | 25bb93020de6559e8da22a0498a7c0db35f3e3aa (patch) | |
tree | c37b7269435f42f365a99a08aa2744a13cdedab9 | |
parent | 8b10d08732fd4fed2ff618426aeed5847dbe667e (diff) |
Add 'extern' to tgl_allocator declaration in tools.h to prevent multiple definition error when used as static library
-rw-r--r-- | tools.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ #define tsnprintf tgl_snprintf -struct tgl_allocator *tgl_allocator; +extern struct tgl_allocator *tgl_allocator; double tglt_get_double_time (void); int tgl_inflate (void *input, int ilen, void *output, int olen); |