summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/surfaces/image-surface.cc12
-rw-r--r--examples/surfaces/pdf-surface.cc12
-rw-r--r--examples/surfaces/ps-surface.cc12
-rw-r--r--examples/surfaces/svg-surface.cc12
-rw-r--r--examples/text/text-rotate.cc10
5 files changed, 29 insertions, 29 deletions
diff --git a/examples/surfaces/image-surface.cc b/examples/surfaces/image-surface.cc
index 3a349f2..d8ea451 100644
--- a/examples/surfaces/image-surface.cc
+++ b/examples/surfaces/image-surface.cc
@@ -1,9 +1,3 @@
-#include <string>
-#include <iostream>
-#include <cairommconfig.h>
-#include <cairomm/context.h>
-#include <cairomm/surface.h>
-
/* M_PI is defined in math.h in the case of Microsoft Visual C++, Solaris,
* et. al.
*/
@@ -11,6 +5,12 @@
#define _USE_MATH_DEFINES
#endif
+#include <string>
+#include <iostream>
+#include <cairommconfig.h>
+#include <cairomm/context.h>
+#include <cairomm/surface.h>
+
#include <cmath>
int main()
diff --git a/examples/surfaces/pdf-surface.cc b/examples/surfaces/pdf-surface.cc
index a742918..630f196 100644
--- a/examples/surfaces/pdf-surface.cc
+++ b/examples/surfaces/pdf-surface.cc
@@ -1,9 +1,3 @@
-#include <string>
-#include <iostream>
-#include <cairommconfig.h>
-#include <cairomm/context.h>
-#include <cairomm/surface.h>
-
/* M_PI is defined in math.h in the case of Microsoft Visual C++, Solaris,
* et. al.
*/
@@ -11,6 +5,12 @@
#define _USE_MATH_DEFINES
#endif
+#include <string>
+#include <iostream>
+#include <cairommconfig.h>
+#include <cairomm/context.h>
+#include <cairomm/surface.h>
+
#include <cmath>
int main()
diff --git a/examples/surfaces/ps-surface.cc b/examples/surfaces/ps-surface.cc
index 73d630d..4e5bd2a 100644
--- a/examples/surfaces/ps-surface.cc
+++ b/examples/surfaces/ps-surface.cc
@@ -1,9 +1,3 @@
-#include <string>
-#include <iostream>
-#include <cairommconfig.h>
-#include <cairomm/context.h>
-#include <cairomm/surface.h>
-
/* M_PI is defined in math.h in the case of Microsoft Visual C++, Solaris,
* et. al.
*/
@@ -11,6 +5,12 @@
#define _USE_MATH_DEFINES
#endif
+#include <string>
+#include <iostream>
+#include <cairommconfig.h>
+#include <cairomm/context.h>
+#include <cairomm/surface.h>
+
#include <cmath>
int main()
diff --git a/examples/surfaces/svg-surface.cc b/examples/surfaces/svg-surface.cc
index 38f96c9..56e101d 100644
--- a/examples/surfaces/svg-surface.cc
+++ b/examples/surfaces/svg-surface.cc
@@ -1,9 +1,3 @@
-#include <string>
-#include <iostream>
-#include <cairommconfig.h>
-#include <cairomm/context.h>
-#include <cairomm/surface.h>
-
/* M_PI is defined in math.h in the case of Microsoft Visual C++, Solaris,
* et. al.
*/
@@ -11,6 +5,12 @@
#define _USE_MATH_DEFINES
#endif
+#include <string>
+#include <iostream>
+#include <cairommconfig.h>
+#include <cairomm/context.h>
+#include <cairomm/surface.h>
+
#include <cmath>
int main()
diff --git a/examples/text/text-rotate.cc b/examples/text/text-rotate.cc
index 530c2f7..69e02ff 100644
--- a/examples/text/text-rotate.cc
+++ b/examples/text/text-rotate.cc
@@ -16,11 +16,6 @@
* 02110-1301, USA.
*/
-#include <string>
-#include <iostream>
-#include <cairommconfig.h>
-#include <cairomm/cairomm.h>
-
/* M_PI is defined in math.h in the case of Microsoft Visual C++, and
* Solaris needs math.h for M_PI and floor()
*/
@@ -28,6 +23,11 @@
#define _USE_MATH_DEFINES
#endif
+#include <string>
+#include <iostream>
+#include <cairommconfig.h>
+#include <cairomm/cairomm.h>
+
#include <cmath>
// This example is based on the C cairo example of the same name