diff options
Diffstat (limited to 'examples/pdf-surface/main.cc')
-rw-r--r-- | examples/pdf-surface/main.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/pdf-surface/main.cc b/examples/pdf-surface/main.cc index 7ae44b5..a4114ed 100644 --- a/examples/pdf-surface/main.cc +++ b/examples/pdf-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_PDF_SURFACE |