[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (81e6a463683376f97fa1a18399af282735243997)



The branch, master has been updated
       via  81e6a463683376f97fa1a18399af282735243997 (commit)
      from  1b7393d122447d04bb37aa48c91957558c8d83a8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/lesstif/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit 81e6a463683376f97fa1a18399af282735243997
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Conditionally use "class" or "c_class" depending on the compiler
    language.
    
    The X11 headers define some classes differently based on whether
    they're being used for C or C++, so we have to make our access to them
    conditional also.

:100644 100644 11740c7... 1f5b7b0... M	src/hid/lesstif/main.c

=========
 Changes
=========

commit 81e6a463683376f97fa1a18399af282735243997
Author: DJ Delorie <dj@xxxxxxxxxxx>
Commit: DJ Delorie <dj@xxxxxxxxxxx>

    Conditionally use "class" or "c_class" depending on the compiler
    language.
    
    The X11 headers define some classes differently based on whether
    they're being used for C or C++, so we have to make our access to them
    conditional also.

diff --git a/src/hid/lesstif/main.c b/src/hid/lesstif/main.c
index 11740c7..1f5b7b0 100644
--- a/src/hid/lesstif/main.c
+++ b/src/hid/lesstif/main.c
@@ -1006,6 +1006,10 @@ LoadBackgroundFile (FILE *f, char *filename)
 	 vinfo->depth, vinfo->class);
 #endif
 
+#if !defined(__cplusplus)
+#define c_class class
+#endif
+
   if (vinfo->c_class == TrueColor
       && vinfo->depth == 16
       && vinfo->red_mask == 0xf800




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs