Skip to content

Instantly share code, notes, and snippets.

@lasconic
Last active December 17, 2015 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lasconic/5620042 to your computer and use it in GitHub Desktop.
Save lasconic/5620042 to your computer and use it in GitHub Desktop.
From 39a3aedd36c5463ca076f2ec5aa6cbcfc06500e6 Mon Sep 17 00:00:00 2001
From: lasconic <lasconic@gmail.com>
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