From b76e309166f714b0a66fb4802f02e92a82d09082 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 9 Jan 2025 14:44:31 -0500 Subject: flatten file structure + rename --- example/example-export.h | 42 ++++++++++++++++++++++++++++++++++++++++++ example/example.cpp | 2 +- example/example_export.h | 42 ------------------------------------------ 3 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 example/example-export.h delete mode 100644 example/example_export.h (limited to 'example') 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 */ diff --git a/example/example.cpp b/example/example.cpp index 17a79a3..911c2cd 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -2,7 +2,7 @@ #include "example.hpp" #include "components.hpp" -#include "vendor/pk.h" +#include "pk.h" void OnEntityTypeCollision(const void *lhs, const void *rhs) { fprintf(stdout, "[Example::OnEntityTypeCollision] Called\n"); diff --git a/example/example_export.h b/example/example_export.h deleted file mode 100644 index 53bf208..0000000 --- a/example/example_export.h +++ /dev/null @@ -1,42 +0,0 @@ - -#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 */ -- cgit v1.2.3