summaryrefslogtreecommitdiff
path: root/libraries/integer-gmp/cbits/cbits.c
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/integer-gmp/cbits/cbits.c')
-rw-r--r--libraries/integer-gmp/cbits/cbits.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libraries/integer-gmp/cbits/cbits.c b/libraries/integer-gmp/cbits/cbits.c
new file mode 100644
index 0000000000..4b9fd01480
--- /dev/null
+++ b/libraries/integer-gmp/cbits/cbits.c
@@ -0,0 +1,13 @@
+
+/* We combine the two C files here.
+ *
+ * There is actually a good reason for this, really!
+ * The alloc file contains a __attribute__((constructor)) function. We must
+ * have this function in the same .o file as other stuff that actually gets
+ * used otherwise the static linker doesn't bother to pull in the .o file
+ * containing the constructor function. While we could just stick them in
+ * the same .c file that'd be a bit annoying. So we combine them here.
+ * */
+
+#include "alloc.c"
+#include "float.c"