Last active
December 17, 2015 13:49
-
-
Save lasconic/5620042 to your computer and use it in GitHub Desktop.
Patch libvorbis to avoid crash
see http://stackoverflow.com/questions/7721118/mac-osx-intel-llvm-assembler-bug-causes-vorbis-ogg-loader-to-crash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 39a3aedd36c5463ca076f2ec5aa6cbcfc06500e6 Mon Sep 17 00:00:00 2001 | |
From: lasconic <[email protected]> | |
Date: Tue, 21 May 2013 17:01:04 +0200 | |
Subject: [PATCH] add llvm condition to not use fpu | |
--- | |
lib/os.h | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/lib/os.h b/lib/os.h | |
index 3a0b268..13c5711 100644 | |
--- a/lib/os.h | |
+++ b/lib/os.h | |
@@ -81,7 +81,7 @@ void *_alloca(size_t size); | |
/* Special i386 GCC implementation */ | |
-#if defined(__i386__) && defined(__GNUC__) && !defined(__BEOS__) | |
+#if defined(__i386__) && defined(__GNUC__) && !defined(__BEOS__) && !defined(__llvm__) | |
# define VORBIS_FPU_CONTROL | |
/* both GCC and MSVC are kinda stupid about rounding/casting to int. | |
Because of encapsulation constraints (GCC can't see inside the asm | |
-- | |
1.7.12.4 (Apple Git-37) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment