Skip to content

Instantly share code, notes, and snippets.

@2bits
Created September 28, 2011 21:17
Show Gist options
  • Save 2bits/1249277 to your computer and use it in GitHub Desktop.
Save 2bits/1249277 to your computer and use it in GitHub Desktop.
flac-1.2.1/config.h Patch for 32 vs 64 SIZEOF_VOIDP on Mac OSX universal builds, from Macports/Fink
diff --git a/config.h b/config.h
index 4ea0e2c..27fcf18 100644
--- a/config.h
+++ b/config.h
@@ -113,7 +113,11 @@
#define PACKAGE_VERSION ""
/* The size of a `void*', as computed by sizeof. */
+#ifdef __LP64__
#define SIZEOF_VOIDP 8
+#else
+#define SIZEOF_VOIDP 4
+#endif
/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment