mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xfree86: common: include math.h unconditionally
The header exists on all supported platform, maybe some might still need
to define _XOPEN_SOURCE to get pow() defined.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1548>
(cherry picked from commit 0a0731721f)
This commit is contained in:
committed by
Alan Coopersmith
parent
c2083c59fb
commit
f34bd23a5f
@@ -29,17 +29,12 @@
|
||||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#if defined(_XOPEN_SOURCE) || defined(__sun) && defined(__SVR4)
|
||||
#include <math.h>
|
||||
#else
|
||||
#define _XOPEN_SOURCE /* to get prototype for pow on some systems */
|
||||
#include <math.h>
|
||||
#undef _XOPEN_SOURCE
|
||||
#endif
|
||||
|
||||
#include <X11/X.h>
|
||||
#include "misc.h"
|
||||
#include <X11/Xproto.h>
|
||||
|
||||
#include "misc.h"
|
||||
|
||||
#include "colormapst.h"
|
||||
#include "scrnintstr.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user