diff options
Diffstat (limited to 'examples/ps-surface/main.cc')
-rw-r--r-- | examples/ps-surface/main.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/ps-surface/main.cc b/examples/ps-surface/main.cc index dc02fc9..d6049d8 100644 --- a/examples/ps-surface/main.cc +++ b/examples/ps-surface/main.cc @@ -1,14 +1,20 @@ #include <string> #include <iostream> +#include <cairomm/cairommconfig.h> #include <cairomm/context.h> #include <cairomm/surface.h> -/* M_PI is defined in math.h in the case of Microsoft Visual C++ */ +/* M_PI is defined in math.h in the case of Microsoft Visual C++, Solaris, + * et. al. + */ #if defined(_MSC_VER) #define _USE_MATH_DEFINES -#include <math.h> #endif +#ifdef HAVE_MATH_H +# include <math.h> +#endif + int main() { #ifdef CAIRO_HAS_PS_SURFACE |