[cairo-commit] cairomm/examples/text-rotate text-rotate.cc,1.2,1.3

Jonathon Jongsma commit at pdx.freedesktop.org
Fri Aug 18 18:22:54 PDT 2006

Committed by: jjongsma

Update of /cvs/cairo/cairomm/examples/text-rotate
In directory kemper:/tmp/cvs-serv1157/examples/text-rotate

Modified Files:
Log Message:
2006-08-18  Cedric Gustin  <cedric.gustin at gmail.com>

	* cairomm/context.cc: Define M_PI for MSVC.
	* cairomm/scaledfont.cc: Allocate glyph_array as a dynamic array
	as MSVC does not like non-const arguments as array size.
	* examples/pdf-surface/main.cc, examples/png_file/main.cc,
	examples/ps-surface/main.cc, examples/svg-surface/main.cc,
	examples/text-rotate/text-rotate.cc: Define M_PI for MSVC. 
	* configure.in, Makefile.am: Generate Makefiles in the MSVC
	* .cvsignore: Added Eclipse .project to the list of ignored files.
	* MSVC/*: Added project and resource files for Visual Studio 2005.

Index: text-rotate.cc
RCS file: /cvs/cairo/cairomm/examples/text-rotate/text-rotate.cc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- text-rotate.cc	3 Apr 2006 23:52:26 -0000	1.2
+++ text-rotate.cc	19 Aug 2006 01:22:52 -0000	1.3
@@ -21,6 +21,12 @@
 #include <iostream>
 #include <cairomm/cairomm.h>
+/* M_PI is defined in math.h in the case of Microsoft Visual C++ */
+#if defined(_MSC_VER)
+#include <math.h>
 // This example is based on the C cairo example of the same name
 const int WIDTH = 150;

More information about the cairo-commit mailing list