summaryrefslogtreecommitdiffstats
path: root/freetds-tds_sysdep_public.h
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-07-03 18:42:44 +0200
committerRemi Collet <fedora@famillecollet.com>2013-07-03 18:42:44 +0200
commit837dc6656e5b26eb7ce6d61e24340b8db6101ff0 (patch)
treebc35e038aaafdc67cb014cdc36294bb25e921042 /freetds-tds_sysdep_public.h
freetds: import from EPEL-6
Diffstat (limited to 'freetds-tds_sysdep_public.h')
-rw-r--r--freetds-tds_sysdep_public.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/freetds-tds_sysdep_public.h b/freetds-tds_sysdep_public.h
new file mode 100644
index 0000000..02824c0
--- /dev/null
+++ b/freetds-tds_sysdep_public.h
@@ -0,0 +1,15 @@
+/*
+ * To avoid multiarch conflicts, we differentiate the 32/64 bit length
+ * specific header names. This file is a wrapper to include the proper
+ * arch-specific header at compile time.
+ */
+
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+#include <tds_sysdep_public_32.h>
+#elif __WORDSIZE == 64
+#include <tds_sysdep_public_64.h>
+#else
+#error "Unknown word size"
+#endif