Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHedayat Vatankhah <hedayat.fwd@gmail.com>2015-10-17 00:28:30 +0300
committerHedayat Vatankhah <hedayat.fwd@gmail.com>2015-10-17 00:32:09 +0300
commit25bb93020de6559e8da22a0498a7c0db35f3e3aa (patch)
treec37b7269435f42f365a99a08aa2744a13cdedab9
parent8b10d08732fd4fed2ff618426aeed5847dbe667e (diff)
Add 'extern' to tgl_allocator declaration in tools.h to prevent multiple definition error when used as static library
-rw-r--r--tools.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index c9b7838..aa4c2bc 100644
--- a/tools.h
+++ b/tools.h
@@ -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);