summaryrefslogtreecommitdiff
path: root/example/example-export.h
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-01-09 14:44:31 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-01-09 14:44:31 -0500
commitb76e309166f714b0a66fb4802f02e92a82d09082 (patch)
tree44244fc0e6f873e1ccf6e1e95e2fec62fcec394a /example/example-export.h
parentb04fefe8ee0086bc1404c06b8351ecb4e942f151 (diff)
flatten file structure + rename
Diffstat (limited to 'example/example-export.h')
-rw-r--r--example/example-export.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/example/example-export.h b/example/example-export.h
new file mode 100644
index 0000000..53bf208
--- /dev/null
+++ b/example/example-export.h
@@ -0,0 +1,42 @@
+
+#ifndef EXAMPLE_EXPORT_H
+#define EXAMPLE_EXPORT_H
+
+#ifdef EXAMPLE_STATIC_DEFINE
+# define EXAMPLE_EXPORT
+# define EXAMPLE_NO_EXPORT
+#else
+# ifndef EXAMPLE_EXPORT
+# ifdef extension_EXPORTS
+ /* We are building this library */
+# define EXAMPLE_EXPORT extern "C" __attribute__((visibility("default")))
+# else
+ /* We are using this library */
+# define EXAMPLE_EXPORT __attribute__((visibility("default")))
+# endif
+# endif
+
+# ifndef EXAMPLE_NO_EXPORT
+# define EXAMPLE_NO_EXPORT __attribute__((visibility("hidden")))
+# endif
+#endif
+
+#ifndef EXAMPLE_DEPRECATED
+# define EXAMPLE_DEPRECATED __attribute__ ((__deprecated__))
+#endif
+
+#ifndef EXAMPLE_DEPRECATED_EXPORT
+# define EXAMPLE_DEPRECATED_EXPORT EXAMPLE_EXPORT EXAMPLE_DEPRECATED
+#endif
+
+#ifndef EXAMPLE_DEPRECATED_NO_EXPORT
+# define EXAMPLE_DEPRECATED_NO_EXPORT EXAMPLE_NO_EXPORT EXAMPLE_DEPRECATED
+#endif
+
+#if 0 /* DEFINE_NO_DEPRECATED */
+# ifndef EXAMPLE_NO_DEPRECATED
+# define EXAMPLE_NO_DEPRECATED
+# endif
+#endif
+
+#endif /* EXAMPLE_EXPORT_H */