gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog plugin/plugin.h


From: Markus Gothe
Subject: [Gnash-commit] gnash ChangeLog plugin/plugin.h
Date: Sat, 07 Oct 2006 19:21:49 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Markus Gothe <nihilus>  06/10/07 19:21:49

Modified files:
        .              : ChangeLog 
        plugin         : plugin.h 

Log message:
        Define __FUNCTION__ and __PRETTY_FUNCTION__ if not.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1064&r2=1.1065
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/plugin.h?cvsroot=gnash&r1=1.25&r2=1.26

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1064
retrieving revision 1.1065
diff -u -b -r1.1064 -r1.1065
--- ChangeLog   7 Oct 2006 16:13:52 -0000       1.1064
+++ ChangeLog   7 Oct 2006 19:21:49 -0000       1.1065
@@ -39,6 +39,7 @@
 
        * configure.ac: Fixed typo. '!=' -> '='.
        * macros/sdl.m4: Fixed finding libpath.
+       * plugin/plugin.h: Define __FUNCTION__ and __PRETTY_FUNCTION__ if not.
 
 2006-10-07 Tomas Groth Christensen <address@hidden>
 

Index: plugin/plugin.h
===================================================================
RCS file: /sources/gnash/gnash/plugin/plugin.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- plugin/plugin.h     5 Oct 2006 21:06:52 -0000       1.25
+++ plugin/plugin.h     7 Oct 2006 19:21:49 -0000       1.26
@@ -35,6 +35,8 @@
 // 
 //
 
+/* $Id: plugin.h,v 1.26 2006/10/07 19:21:49 nihilus Exp $ */
+
 #ifndef __PLUGIN_H__
 #define __PLUGIN_H__
 
@@ -42,7 +44,14 @@
 #include "config.h"
 #endif
 
-//#include "tu_config.h"
+#if ((!defined(__PRETTY_FUNCTION__) || !defined(__FUNCTION__)) && 
!defined(_WIN32) && !defined(WIN32) && !defined(__GNUC))
+       #ifndef __FUNCTION__    
+               #define dummystr(x) # x
+               #define dummyestr(x) dummystr(x)
+               #define __FUNCTION__ __FILE__":"dummyestr(__LINE__)             
+       #endif
+       #define __PRETTY_FUNCTION__ __FUNCTION__
+#endif
 
 /* Xlib/Xt stuff */
 #include <X11/Xlib.h>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]