From 91b89133a9cdb8938416cd6c558e71df44f71ecc Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 29 May 2012 12:53:38 +0200 Subject: [PATCH] port.h: Added NAN macro. --- include/wine/port.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/wine/port.h b/include/wine/port.h index 82816537d20..705716eebb1 100644 --- a/include/wine/port.h +++ b/include/wine/port.h @@ -199,6 +199,15 @@ struct statvfs #define M_PI_2 1.570796326794896619 #endif +#ifndef NAN +static float inline __port_nan(void) +{ + static const unsigned __nan_bytes = 0x7fc00000; + return *(const float *)&__nan_bytes; +} +#define NAN __port_nan() +#endif + /**************************************************************** * Function definitions (only when using libwine_port) -- 2.11.4.GIT