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

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-03-12 09:46:04 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-03-12 09:46:04 +0300
commit7f38906f5073e40362bd4d3ce8932378dc9818aa (patch)
tree3228567006c6874612543da74b87f63975680ced /libcelt/os_support.h
parent31b79d19932ce37c62b4aed8cee2180e6106a25c (diff)
Added info for properly exporting symbols
Diffstat (limited to 'libcelt/os_support.h')
-rw-r--r--libcelt/os_support.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libcelt/os_support.h b/libcelt/os_support.h
index 32325d6..5868a1b 100644
--- a/libcelt/os_support.h
+++ b/libcelt/os_support.h
@@ -42,6 +42,14 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef __GNUC__
+#define EXPORT __attribute__ ((visibility ("default")))
+#elif defined(WIN32)
+#define EXPORT __declspec(dllexport)
+#else
+#define EXPORT
+#endif
+
/** Speex wrapper for calloc. To do your own dynamic allocation, all you need to do is replace this function, celt_realloc and celt_free
NOTE: celt_alloc needs to CLEAR THE MEMORY */
#ifndef OVERRIDE_CELT_ALLOC