1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Fail to build if the -ffast-math option is specified in GCC.

Ticket #3202. (CVS 5345)

FossilOrigin-Name: aa5be9ee935ae2a45d78405e26bba2385a52563a
This commit is contained in:
drh
2008-07-06 00:21:35 +00:00
parent 45b1fac0ac
commit 8c4d5b252e
3 changed files with 11 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
** This file contains functions for allocating memory, comparing
** strings, and stuff like that.
**
** $Id: util.c,v 1.232 2008/06/13 18:24:27 drh Exp $
** $Id: util.c,v 1.233 2008/07/06 00:21:35 drh Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -34,6 +34,9 @@ int sqlite3IsNaN(double x){
** which depend on an exact implementation of IEEE or ISO
** rules/specifications for math functions.
*/
#ifdef __FAST_MATH__
# error SQLite will not work correctly with the -ffast-math option of GCC.
#endif
volatile double y = x;
return x!=y;
}