[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14075] trunk/blender/intern/ghost/intern/ GHOST_SystemX11.cpp: oddly enough this printf was the only problem compiling blender with GCC 4 .3

Campbell Barton ideasman42 at gmail.com
Wed Mar 12 22:38:52 CET 2008


Revision: 14075
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14075
Author:   campbellbarton
Date:     2008-03-12 22:38:51 +0100 (Wed, 12 Mar 2008)

Log Message:
-----------
oddly enough this printf was the only problem compiling blender with GCC 4.3

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_SystemX11.cpp

Modified: trunk/blender/intern/ghost/intern/GHOST_SystemX11.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemX11.cpp	2008-03-12 21:33:24 UTC (rev 14074)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemX11.cpp	2008-03-12 21:38:51 UTC (rev 14075)
@@ -95,6 +95,9 @@
 #include <unistd.h>
 
 #include <vector>
+
+#include <stdio.h> // for fprintf only
+
 //these are for copy and select copy
 static char *txt_cut_buffer= NULL;
 static char *txt_select_buffer= NULL;
@@ -1033,7 +1036,7 @@
 	XSetSelectionOwner(m_display, Primary_atom, m_window, CurrentTime);
 	owner = XGetSelectionOwner(m_display, Primary_atom);
 	if (owner != m_window)
-		printf("failed to own primary\n");
+		fprintf(stderr, "failed to own primary\n");
 	
 	return;
 }





More information about the Bf-blender-cvs mailing list