looking into SWT 3.0 M8 for native compilation with GCJ

Erik Poupaert erik.poupaert@skynet.be
Fri Apr 16 23:13:00 GMT 2004


> We needed the appended to make some versions of the swt gtk JNI code
> compile against newer versions of gtk.  I thought we had submitted
> this upstream... Peter?

The file name has apparently changed from structs.h to os_structs.h; and the patch
gets rejected:

$ patch os_structs.h os_structs.h.patch
patching file os_structs.h
Hunk #1 FAILED at 16.
1 out of 1 hunk FAILED -- saving rejects to file os_structs.h.rej

$ cat os_structs.h.rej
***************
*** 16,21 ****
  #ifndef INC_structs_H
  #define INC_structs_H
    
  #include <gtk/gtk.h>
  #include <gdk/gdk.h>
  #include <pango/pango.h>
--- 16,23 ----
  #ifndef INC_structs_H
  #define INC_structs_H
    
+ #undef GTK_DISABLE_DEPRECATED
+
  #include <gtk/gtk.h>
  #include <gdk/gdk.h>
  #include <pango/pango.h>



More information about the Java mailing list