mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
add TK_ISFINITE
This commit is contained in:
parent
a2a54d40b4
commit
775b4f479f
@ -415,4 +415,12 @@ typedef struct _event_source_manager_t event_source_manager_t;
|
||||
#define TK_DEFAULT_WAIT_TIME 16
|
||||
#endif /*TK_DEFAULT_WAIT_TIME*/
|
||||
|
||||
/*from cairo/cairo/cairoint.h*/
|
||||
#if _XOPEN_SOURCE >= 600 || defined (_ISOC99_SOURCE)
|
||||
#define TK_ISFINITE(x) isfinite (x)
|
||||
#else
|
||||
#define TK_ISFINITE(x) ((x) * (x) >= 0.) /* check for NaNs */
|
||||
#endif
|
||||
|
||||
|
||||
#endif /*TYPES_DEF_H*/
|
||||
|
Loading…
Reference in New Issue
Block a user