I tried compiling with compaq's c compiler and kept getting errors. Seems that their c compiler does not support the gcc extensions to ansi c, namely the use of "<varname>..." in the macros. There may be a compiler option that I missed or maybe a beter way to handle it is in the Makefile or #ifdef's in the headers, so comments are welcome.

Here are the changes I made.

Index: src/event.h
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/event.h,v
retrieving revision 1.2
diff -r1.2 event.h
69,70c69,71
< #define T_VETO(sig, args...) if((*((sig)s->cb))(args)) break;
< #define T_NORMAL(sig, args...) (*((sig)s->cb))(args);
---
// FIXME:// changed "args..." to "..." and "__VA_ARGS__" in the following two lines
#define T_VETO(sig, ...) if((*((sig)s->cb))(__VA_ARGS__)) break;
#define T_NORMAL(sig, ...) (*((sig)s->cb))(__VA_ARGS__);
Index: src/listener.h
===================================================================
RCS file: /cvsroot/gtk-gnutella/gtk-gnutella-current/src/listener.h,v
retrieving revision 1.4
diff -r1.4 listener.h
56c56,57
< #define LISTENER_EMIT(signal, args...)                                 \
---
// FIXME: changed "args..." to "..." and "##__VA_ARGS__" on the following line
#define LISTENER_EMIT(signal, ...) \
61c62
<             (*fn)(args);                                               \
---
(*fn)(##__VA_ARGS__); \

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Gtk-gnutella-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to