freebsd-ports/devel/gcvs/files/patch-rf_umain.h
Martin Wilke a28acc2928 - Fix build with gcc 4.2/AMD64
PR:		118027
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (pav,linimon)
2007-11-22 22:27:29 +00:00

20 lines
864 B
C++

--- rf/umain.h.orig 2002-01-02 17:46:33.000000000 +0100
+++ rf/umain.h 2007-11-14 00:02:57.000000000 +0100
@@ -690,7 +690,7 @@
} UDispatchInfo;
//! dispatch an event using the static message table.
- virtual int UDispatchMessage(int/*UEventType*/ evt, int arg1, void *arg2, UDispatchInfo & dispatchInfo);
+ virtual int UDispatchMessage(int/*UEventType*/ evt, int arg1, const void *arg2, UDispatchInfo & dispatchInfo);
inline int GetWidID(void) const { return m_widid; }
private:
@@ -969,7 +969,7 @@
extern "C" {
#endif
-UEXPORT int UEventSendMessage(int wid, int/*UEventType*/ evt, int arg1, void *arg2);
+UEXPORT int UEventSendMessage(int wid, int/*UEventType*/ evt, int arg1, const void *arg2);
/* send a message to a pseudo-widget */
UEXPORT int UEventSendMessageExt(int wid, int/*UEventType*/ evt, int arg1, void *arg2, int * handledFlag);