summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-09-03 13:55:40 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-10-25 11:03:56 -0400
commitb2cf35c26d5263f3079480208429e3a1d7dd2373 (patch)
tree0e4fccb223cde4c0344f43aba4aa7ff82e8de0bc
parentda47b2858f6e64ec60dce218544647df32b49077 (diff)
downloaddimension-b2cf35c26d5263f3079480208429e3a1d7dd2373.tar.xz
base: Make sure all inline functions get emitted, even internal ones.
-rw-r--r--libdimension/Makefile.am1
-rw-r--r--libdimension/base/inline.c2
-rw-r--r--libdimension/internal/all.h34
3 files changed, 36 insertions, 1 deletions
diff --git a/libdimension/Makefile.am b/libdimension/Makefile.am
index 5c14363..7dcb84a 100644
--- a/libdimension/Makefile.am
+++ b/libdimension/Makefile.am
@@ -91,6 +91,7 @@ libdimension_la_SOURCES = $(nobase_include_HEADERS) \
concurrency/threads.c \
dimension.h \
internal.h \
+ internal/all.h \
internal/bvh.h \
internal/compiler.h \
internal/future.h \
diff --git a/libdimension/base/inline.c b/libdimension/base/inline.c
index b0622fe..4ea5f5e 100644
--- a/libdimension/base/inline.c
+++ b/libdimension/base/inline.c
@@ -40,4 +40,4 @@
#define DMNSN_INLINE static
#endif
-#include "dimension.h"
+#include "internal/all.h"
diff --git a/libdimension/internal/all.h b/libdimension/internal/all.h
new file mode 100644
index 0000000..554981a
--- /dev/null
+++ b/libdimension/internal/all.h
@@ -0,0 +1,34 @@
+/*************************************************************************
+ * Copyright (C) 2010-2014 Tavian Barnes <tavianator@tavianator.com> *
+ * *
+ * This file is part of The Dimension Library. *
+ * *
+ * The Dimension Library is free software; you can redistribute it and/ *
+ * or modify it under the terms of the GNU Lesser General Public License *
+ * as published by the Free Software Foundation; either version 3 of the *
+ * License, or (at your option) any later version. *
+ * *
+ * The Dimension Library is distributed in the hope that it will be *
+ * useful, but WITHOUT ANY WARRANTY; without even the implied warranty *
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
+ * Lesser General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU Lesser General Public *
+ * License along with this program. If not, see *
+ * <http://www.gnu.org/licenses/>. *
+ *************************************************************************/
+
+/**
+ * @file
+ * All headers, internal or otherwise.
+ */
+
+#include "internal.h"
+#include "dimension.h"
+#include "internal/bvh.h"
+#include "internal/concurrency.h"
+#include "internal/future.h"
+#include "internal/platform.h"
+#include "internal/polynomial.h"
+#include "internal/prtree.h"
+#include "internal/rgba.h"