2089 lines
36 KiB
Diff
2089 lines
36 KiB
Diff
|
--- WINGs/Examples/colorpick.c.orig
|
||
|
+++ WINGs/Examples/colorpick.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <WINGs/WINGs.h>
|
||
|
--- WINGs/Examples/fontl.c.orig
|
||
|
+++ WINGs/Examples/fontl.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdint.h>
|
||
|
--- WINGs/Examples/puzzle.c.orig
|
||
|
+++ WINGs/Examples/puzzle.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <WINGs/WINGs.h>
|
||
|
--- WINGs/Extras/test.c.orig
|
||
|
+++ WINGs/Extras/test.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGs.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdint.h>
|
||
|
--- WINGs/Extras/wtabledelegates.c.orig
|
||
|
+++ WINGs/Extras/wtabledelegates.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdint.h>
|
||
|
#include <WINGs/WINGsP.h>
|
||
|
|
||
|
--- WINGs/Extras/wtableview.c.orig
|
||
|
+++ WINGs/Extras/wtableview.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGsP.h>
|
||
|
#include <X11/cursorfont.h>
|
||
|
#include <stdint.h>
|
||
|
--- WINGs/Tests/mywidget.c.orig
|
||
|
+++ WINGs/Tests/mywidget.c
|
||
|
@@ -13,6 +13,10 @@
|
||
|
*
|
||
|
*
|
||
|
*/
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGsP.h>
|
||
|
|
||
|
/*
|
||
|
--- WINGs/Tests/testmywidget.c.orig
|
||
|
+++ WINGs/Tests/testmywidget.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGs.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
--- WINGs/Tests/wmfile.c.orig
|
||
|
+++ WINGs/Tests/wmfile.c
|
||
|
@@ -11,6 +11,10 @@
|
||
|
-----------------------------------------------------------------------
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGs.h>
|
||
|
|
||
|
#include <unistd.h>
|
||
|
--- WINGs/Tests/wmquery.c.orig
|
||
|
+++ WINGs/Tests/wmquery.c
|
||
|
@@ -3,6 +3,10 @@
|
||
|
* Author: Len Trigg <trigg@cs.waikato.ac.nz>
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGs.h>
|
||
|
|
||
|
#include <unistd.h>
|
||
|
--- WINGs/Tests/wtest.c.orig
|
||
|
+++ WINGs/Tests/wtest.c
|
||
|
@@ -2,6 +2,10 @@
|
||
|
* WINGs test application
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGs.h>
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- WINGs/array.c.orig
|
||
|
+++ WINGs/array.c
|
||
|
@@ -8,6 +8,10 @@
|
||
|
* proper credit is always appreciated :)
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
--- WINGs/bagtree.c.orig
|
||
|
+++ WINGs/bagtree.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
|
||
|
--- WINGs/configuration.c.orig
|
||
|
+++ WINGs/configuration.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
--- WINGs/data.c.orig
|
||
|
+++ WINGs/data.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <string.h>
|
||
|
#include "WUtil.h"
|
||
|
|
||
|
--- WINGs/dragcommon.c.orig
|
||
|
+++ WINGs/dragcommon.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#define XDND_SOURCE_VERSION(dragInfo) dragInfo->protocolVersion
|
||
|
--- WINGs/dragdestination.c.orig
|
||
|
+++ WINGs/dragdestination.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
#include <X11/Xatom.h>
|
||
|
|
||
|
--- WINGs/dragsource.c.orig
|
||
|
+++ WINGs/dragsource.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
--- WINGs/error.c.orig
|
||
|
+++ WINGs/error.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdarg.h>
|
||
|
--- WINGs/findfile.c.orig
|
||
|
+++ WINGs/findfile.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include "WUtil.h"
|
||
|
--- WINGs/handlers.c.orig
|
||
|
+++ WINGs/handlers.c
|
||
|
@@ -3,6 +3,10 @@
|
||
|
* WINGs internal handlers: timer, idle and input handlers
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
--- WINGs/hashtable.c.orig
|
||
|
+++ WINGs/hashtable.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <string.h>
|
||
|
#include <stdlib.h>
|
||
|
--- WINGs/memory.c.orig
|
||
|
+++ WINGs/memory.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
#include "WUtil.h"
|
||
|
|
||
|
--- WINGs/misc.c.orig
|
||
|
+++ WINGs/misc.c
|
||
|
@@ -1,6 +1,10 @@
|
||
|
|
||
|
/* Miscelaneous helper functions */
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
WMRange wmkrange(int start, int count)
|
||
|
--- WINGs/notification.c.orig
|
||
|
+++ WINGs/notification.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <assert.h>
|
||
|
#include <stdio.h>
|
||
|
--- WINGs/proplist.c.orig
|
||
|
+++ WINGs/proplist.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
--- WINGs/selection.c.orig
|
||
|
+++ WINGs/selection.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#include <X11/Xatom.h>
|
||
|
--- WINGs/string.c.orig
|
||
|
+++ WINGs/string.c
|
||
|
@@ -6,6 +6,10 @@
|
||
|
# undef _XOPEN_SOURCE
|
||
|
#endif
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <string.h>
|
||
|
--- WINGs/tree.c.orig
|
||
|
+++ WINGs/tree.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <string.h>
|
||
|
|
||
|
#include "WUtil.h"
|
||
|
--- WINGs/userdefaults.c.orig
|
||
|
+++ WINGs/userdefaults.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
#include <strings.h>
|
||
|
--- WINGs/usleep.c.orig
|
||
|
+++ WINGs/usleep.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <errno.h>
|
||
|
#include <time.h>
|
||
|
|
||
|
--- WINGs/wapplication.c.orig
|
||
|
+++ WINGs/wapplication.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <unistd.h>
|
||
|
#include <X11/Xlocale.h>
|
||
|
|
||
|
--- WINGs/wappresource.c.orig
|
||
|
+++ WINGs/wappresource.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <unistd.h>
|
||
|
|
||
|
#include "WINGsP.h"
|
||
|
--- WINGs/wballoon.c.orig
|
||
|
+++ WINGs/wballoon.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
--- WINGs/wbox.c.orig
|
||
|
+++ WINGs/wbox.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct {
|
||
|
--- WINGs/wbrowser.c.orig
|
||
|
+++ WINGs/wbrowser.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
#include <math.h> /* for : double rint (double) */
|
||
|
|
||
|
--- WINGs/wbutton.c.orig
|
||
|
+++ WINGs/wbutton.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct W_Button {
|
||
|
--- WINGs/wcolor.c.orig
|
||
|
+++ WINGs/wcolor.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#include "wconfig.h"
|
||
|
--- WINGs/wcolorpanel.c.orig
|
||
|
+++ WINGs/wcolorpanel.c
|
||
|
@@ -23,6 +23,10 @@
|
||
|
* - Resizing
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
#include "WINGsP.h"
|
||
|
#include "rgb.h"
|
||
|
--- WINGs/wcolorwell.c.orig
|
||
|
+++ WINGs/wcolorwell.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#define XDND_COLOR_DATA_TYPE "application/X-color"
|
||
|
--- WINGs/wevent.c.orig
|
||
|
+++ WINGs/wevent.c
|
||
|
@@ -3,6 +3,10 @@
|
||
|
* This event handling stuff was inspired on Tk.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
/* table to map event types to event masks */
|
||
|
--- WINGs/wfilepanel.c.orig
|
||
|
+++ WINGs/wfilepanel.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
--- WINGs/wfont.c.orig
|
||
|
+++ WINGs/wfont.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#include "wconfig.h"
|
||
|
--- WINGs/wfontpanel.c.orig
|
||
|
+++ WINGs/wfontpanel.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
#include "WUtil.h"
|
||
|
#include "wconfig.h"
|
||
|
--- WINGs/wframe.c.orig
|
||
|
+++ WINGs/wframe.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct W_Frame {
|
||
|
--- WINGs/widgets.c.orig
|
||
|
+++ WINGs/widgets.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
--- WINGs/winputmethod.c.orig
|
||
|
+++ WINGs/winputmethod.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xlib.h>
|
||
|
|
||
|
#include "WINGsP.h"
|
||
|
--- WINGs/wlabel.c.orig
|
||
|
+++ WINGs/wlabel.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct W_Label {
|
||
|
--- WINGs/wlist.c.orig
|
||
|
+++ WINGs/wlist.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
char *WMListDidScrollNotification = "WMListDidScrollNotification";
|
||
|
--- WINGs/wmenuitem.c.orig
|
||
|
+++ WINGs/wmenuitem.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct W_MenuItem {
|
||
|
--- WINGs/wmisc.c.orig
|
||
|
+++ WINGs/wmisc.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#include <wraster.h>
|
||
|
--- WINGs/wpanel.c.orig
|
||
|
+++ WINGs/wpanel.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#include <X11/keysym.h>
|
||
|
--- WINGs/wpixmap.c.orig
|
||
|
+++ WINGs/wpixmap.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#include <wraster.h>
|
||
|
--- WINGs/wpopupbutton.c.orig
|
||
|
+++ WINGs/wpopupbutton.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct W_PopUpButton {
|
||
|
--- WINGs/wprogressindicator.c.orig
|
||
|
+++ WINGs/wprogressindicator.c
|
||
|
@@ -5,6 +5,10 @@
|
||
|
* - centralized drawing into one pain function
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct W_ProgressIndicator {
|
||
|
--- WINGs/wruler.c.orig
|
||
|
+++ WINGs/wruler.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
--- WINGs/wscroller.c.orig
|
||
|
+++ WINGs/wscroller.c
|
||
|
@@ -7,6 +7,10 @@
|
||
|
# undef _XOPEN_SOURCE
|
||
|
#endif
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#include <math.h>
|
||
|
--- WINGs/wscrollview.c.orig
|
||
|
+++ WINGs/wscrollview.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct W_ScrollView {
|
||
|
--- WINGs/wslider.c.orig
|
||
|
+++ WINGs/wslider.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#undef STRICT_NEXT_BEHAVIOUR
|
||
|
--- WINGs/wsplitview.c.orig
|
||
|
+++ WINGs/wsplitview.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
/*
|
||
|
--- WINGs/wtabview.c.orig
|
||
|
+++ WINGs/wtabview.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
typedef struct W_TabView {
|
||
|
--- WINGs/wtext.c.orig
|
||
|
+++ WINGs/wtext.c
|
||
|
@@ -1,6 +1,10 @@
|
||
|
|
||
|
/* WINGs WMText: multi-line/font/color/graphic text widget, by Nwanua. */
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
#include <ctype.h>
|
||
|
#include <X11/keysym.h>
|
||
|
--- WINGs/wtextfield.c.orig
|
||
|
+++ WINGs/wtextfield.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
--- WINGs/wutil.c.orig
|
||
|
+++ WINGs/wutil.c
|
||
|
@@ -3,6 +3,10 @@
|
||
|
* Handle events for non-GUI based applications
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
void WHandleEvents()
|
||
|
--- WINGs/wview.c.orig
|
||
|
+++ WINGs/wview.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WINGsP.h"
|
||
|
|
||
|
#include <X11/Xresource.h>
|
||
|
--- WINGs/wwindow.c.orig
|
||
|
+++ WINGs/wwindow.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xmd.h>
|
||
|
|
||
|
#include "WINGsP.h"
|
||
|
--- WPrefs.app/Appearance.c.orig
|
||
|
+++ WPrefs.app/Appearance.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
#include <unistd.h>
|
||
|
--- WPrefs.app/Configurations.c.orig
|
||
|
+++ WPrefs.app/Configurations.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/Expert.c.orig
|
||
|
+++ WPrefs.app/Expert.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/Focus.c.orig
|
||
|
+++ WPrefs.app/Focus.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/FontSimple.c.orig
|
||
|
+++ WPrefs.app/FontSimple.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
#include <unistd.h>
|
||
|
#include <fontconfig/fontconfig.h>
|
||
|
--- WPrefs.app/Icons.c.orig
|
||
|
+++ WPrefs.app/Icons.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/KeyboardSettings.c.orig
|
||
|
+++ WPrefs.app/KeyboardSettings.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/Menu.c.orig
|
||
|
+++ WPrefs.app/Menu.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
#include <assert.h>
|
||
|
#include <ctype.h>
|
||
|
--- WPrefs.app/MenuPreferences.c.orig
|
||
|
+++ WPrefs.app/MenuPreferences.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/MouseSettings.c.orig
|
||
|
+++ WPrefs.app/MouseSettings.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
#include <X11/Xutil.h>
|
||
|
--- WPrefs.app/Paths.c.orig
|
||
|
+++ WPrefs.app/Paths.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
#include <unistd.h>
|
||
|
#include <assert.h>
|
||
|
--- WPrefs.app/Preferences.c.orig
|
||
|
+++ WPrefs.app/Preferences.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/TexturePanel.c.orig
|
||
|
+++ WPrefs.app/TexturePanel.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
--- WPrefs.app/Themes.c.orig
|
||
|
+++ WPrefs.app/Themes.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
#include <unistd.h>
|
||
|
--- WPrefs.app/WPrefs.c.orig
|
||
|
+++ WPrefs.app/WPrefs.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
#include <assert.h>
|
||
|
|
||
|
--- WPrefs.app/WindowHandling.c.orig
|
||
|
+++ WPrefs.app/WindowHandling.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/Workspace.c.orig
|
||
|
+++ WPrefs.app/Workspace.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
typedef struct _Panel {
|
||
|
--- WPrefs.app/double.c.orig
|
||
|
+++ WPrefs.app/double.c
|
||
|
@@ -4,6 +4,10 @@
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGsP.h>
|
||
|
|
||
|
#include "double.h"
|
||
|
--- WPrefs.app/editmenu.c.orig
|
||
|
+++ WPrefs.app/editmenu.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGsP.h>
|
||
|
#include <WINGs/WUtil.h>
|
||
|
#include <stdlib.h>
|
||
|
--- WPrefs.app/main.c.orig
|
||
|
+++ WPrefs.app/main.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "WPrefs.h"
|
||
|
|
||
|
#include <assert.h>
|
||
|
--- WPrefs.app/xmodifier.c.orig
|
||
|
+++ WPrefs.app/xmodifier.c
|
||
|
@@ -31,6 +31,10 @@ Perpetrator: Sudish Joseph <sj@eng.minds
|
||
|
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301 USA. */
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <string.h>
|
||
|
#include <strings.h>
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/actions.c.orig
|
||
|
+++ src/actions.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/appicon.c.orig
|
||
|
+++ src/appicon.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/application.c.orig
|
||
|
+++ src/application.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/appmenu.c.orig
|
||
|
+++ src/appmenu.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/balloon.c.orig
|
||
|
+++ src/balloon.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#ifdef BALLOON_TEXT
|
||
|
--- src/client.c.orig
|
||
|
+++ src/client.c
|
||
|
@@ -17,6 +17,10 @@
|
||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/colormap.c.orig
|
||
|
+++ src/colormap.c
|
||
|
@@ -23,6 +23,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include "WindowMaker.h"
|
||
|
--- src/cycling.c.orig
|
||
|
+++ src/cycling.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
--- src/defaults.c.orig
|
||
|
+++ src/defaults.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/dialog.c.orig
|
||
|
+++ src/dialog.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/dock.c.orig
|
||
|
+++ src/dock.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/dockedapp.c.orig
|
||
|
+++ src/dockedapp.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/event.c.orig
|
||
|
+++ src/event.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#ifdef HAVE_INOTIFY
|
||
|
--- src/framewin.c.orig
|
||
|
+++ src/framewin.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/geomview.c.orig
|
||
|
+++ src/geomview.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <WINGs/WINGsP.h>
|
||
|
|
||
|
typedef struct W_GeometryView {
|
||
|
--- src/icon.c.orig
|
||
|
+++ src/icon.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/main.c.orig
|
||
|
+++ src/main.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#ifdef HAVE_INOTIFY
|
||
|
--- src/menu.c.orig
|
||
|
+++ src/menu.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/misc.c.orig
|
||
|
+++ src/misc.c
|
||
|
@@ -17,6 +17,10 @@
|
||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/monitor.c.orig
|
||
|
+++ src/monitor.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
#include <unistd.h>
|
||
|
#include <stdlib.h>
|
||
|
--- src/motif.c.orig
|
||
|
+++ src/motif.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#ifdef MWM_HINTS
|
||
|
--- src/moveres.c.orig
|
||
|
+++ src/moveres.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/osdep_bsd.c.orig
|
||
|
+++ src/osdep_bsd.c
|
||
|
@@ -11,6 +11,10 @@
|
||
|
#else /* OPENBSD || NETBSD */
|
||
|
# include <sys/param.h>
|
||
|
#endif
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/sysctl.h>
|
||
|
|
||
|
#include <assert.h>
|
||
|
--- src/osdep_darwin.c.orig
|
||
|
+++ src/osdep_darwin.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/sysctl.h>
|
||
|
|
||
|
--- src/osdep_linux.c.orig
|
||
|
+++ src/osdep_linux.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
--- src/osdep_stub.c.orig
|
||
|
+++ src/osdep_stub.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/utsname.h>
|
||
|
|
||
|
#include <WINGs/WUtil.h>
|
||
|
--- src/pixmap.c.orig
|
||
|
+++ src/pixmap.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/placement.c.orig
|
||
|
+++ src/placement.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/properties.c.orig
|
||
|
+++ src/properties.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/resources.c.orig
|
||
|
+++ src/resources.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/rootmenu.c.orig
|
||
|
+++ src/rootmenu.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/screen.c.orig
|
||
|
+++ src/screen.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/session.c.orig
|
||
|
+++ src/session.c
|
||
|
@@ -57,6 +57,10 @@
|
||
|
* if the Die message is received, exit.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/shutdown.c.orig
|
||
|
+++ src/shutdown.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
--- src/stacking.c.orig
|
||
|
+++ src/stacking.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/startup.c.orig
|
||
|
+++ src/startup.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/superfluous.c.orig
|
||
|
+++ src/superfluous.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/switchmenu.c.orig
|
||
|
+++ src/switchmenu.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/switchpanel.c.orig
|
||
|
+++ src/switchpanel.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdlib.h>
|
||
|
--- src/texture.c.orig
|
||
|
+++ src/texture.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/usermenu.c.orig
|
||
|
+++ src/usermenu.c
|
||
|
@@ -56,6 +56,10 @@
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#ifdef USER_MENU
|
||
|
--- src/wcore.c.orig
|
||
|
+++ src/wcore.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/wdefaults.c.orig
|
||
|
+++ src/wdefaults.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/window.c.orig
|
||
|
+++ src/window.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/winmenu.c.orig
|
||
|
+++ src/winmenu.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <stdio.h>
|
||
|
--- src/winspector.c.orig
|
||
|
+++ src/winspector.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/wmspec.c.orig
|
||
|
+++ src/wmspec.c
|
||
|
@@ -28,6 +28,10 @@
|
||
|
* return to be Success is not enough. -Dan
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/workspace.c.orig
|
||
|
+++ src/workspace.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
--- src/xdnd.c.orig
|
||
|
+++ src/xdnd.c
|
||
|
@@ -1,5 +1,9 @@
|
||
|
/* Many part of code are ripped of an example from JX's site */
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#ifdef XDND
|
||
|
--- src/xinerama.c.orig
|
||
|
+++ src/xinerama.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include "xinerama.h"
|
||
|
--- src/xmodifier.c.orig
|
||
|
+++ src/xmodifier.c
|
||
|
@@ -27,6 +27,10 @@ Perpetrator: Sudish Joseph <sj@eng.minds
|
||
|
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
Boston, MA 02110-1301 USA. */
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wconfig.h"
|
||
|
|
||
|
#include <string.h>
|
||
|
--- src/xutil.c.orig
|
||
|
+++ src/xutil.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xlib.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <X11/Xutil.h>
|
||
|
--- test/notest.c.orig
|
||
|
+++ test/notest.c
|
||
|
@@ -3,6 +3,10 @@
|
||
|
* TODO: remake
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdio.h>
|
||
|
#include <X11/Xlib.h>
|
||
|
#include <X11/Xutil.h>
|
||
|
--- test/wtest.c.orig
|
||
|
+++ test/wtest.c
|
||
|
@@ -8,6 +8,10 @@
|
||
|
* TODO: remake
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <X11/Xlib.h>
|
||
|
--- util/convertfonts.c.orig
|
||
|
+++ util/convertfonts.c
|
||
|
@@ -23,6 +23,10 @@
|
||
|
#define _GNU_SOURCE /* getopt_long */
|
||
|
#endif
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
#include <getopt.h>
|
||
|
--- util/fontconv.c.orig
|
||
|
+++ util/fontconv.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
--- util/geticonset.c.orig
|
||
|
+++ util/geticonset.c
|
||
|
@@ -23,6 +23,10 @@
|
||
|
#define _GNU_SOURCE /* getopt_long */
|
||
|
#endif
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <getopt.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
--- util/getstyle.c.orig
|
||
|
+++ util/getstyle.c
|
||
|
@@ -23,6 +23,10 @@
|
||
|
#define _GNU_SOURCE /* getopt_long */
|
||
|
#endif
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
--- util/seticons.c.orig
|
||
|
+++ util/seticons.c
|
||
|
@@ -23,6 +23,10 @@
|
||
|
#define _GNU_SOURCE /* getopt_long */
|
||
|
#endif
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <getopt.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
--- util/setstyle.c.orig
|
||
|
+++ util/setstyle.c
|
||
|
@@ -23,6 +23,10 @@
|
||
|
#define _GNU_SOURCE /* getopt_long */
|
||
|
#endif
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
#include <getopt.h>
|
||
|
--- util/wdread.c.orig
|
||
|
+++ util/wdread.c
|
||
|
@@ -28,6 +28,10 @@
|
||
|
* WindowMaker defaults DB reader
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <getopt.h>
|
||
|
#include <limits.h>
|
||
|
#include <stdio.h>
|
||
|
--- util/wdwrite.c.orig
|
||
|
+++ util/wdwrite.c
|
||
|
@@ -28,6 +28,10 @@
|
||
|
*/
|
||
|
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <getopt.h>
|
||
|
#include <limits.h>
|
||
|
#include <stdio.h>
|
||
|
--- util/wmagnify.c.orig
|
||
|
+++ util/wmagnify.c
|
||
|
@@ -6,6 +6,10 @@
|
||
|
* This program is in the Public Domain.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xproto.h>
|
||
|
|
||
|
#include <WINGs/WINGs.h>
|
||
|
--- util/wmgenmenu.c.orig
|
||
|
+++ util/wmgenmenu.c
|
||
|
@@ -4,6 +4,10 @@
|
||
|
#define _GNU_SOURCE /* getopt_long */
|
||
|
#endif
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <ctype.h>
|
||
|
#include <getopt.h>
|
||
|
#include <limits.h>
|
||
|
--- util/wmmenugen.c.orig
|
||
|
+++ util/wmmenugen.c
|
||
|
@@ -18,6 +18,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
--- util/wmmenugen_misc.c.orig
|
||
|
+++ util/wmmenugen_misc.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <libgen.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
--- util/wmmenugen_parse_wmconfig.c.orig
|
||
|
+++ util/wmmenugen_parse_wmconfig.c
|
||
|
@@ -20,6 +20,10 @@
|
||
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
--- util/wmmenugen_parse_xdg.c.orig
|
||
|
+++ util/wmmenugen_parse_xdg.c
|
||
|
@@ -36,6 +36,10 @@
|
||
|
* Basic validation of the .desktop file is done.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <sys/types.h>
|
||
|
#include <sys/stat.h>
|
||
|
|
||
|
--- util/wxcopy.c.orig
|
||
|
+++ util/wxcopy.c
|
||
|
@@ -17,6 +17,10 @@
|
||
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
--- wmlib/app.c.orig
|
||
|
+++ wmlib/app.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xlib.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <string.h>
|
||
|
--- wmlib/command.c.orig
|
||
|
+++ wmlib/command.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xlib.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
--- wmlib/event.c.orig
|
||
|
+++ wmlib/event.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <X11/Xlib.h>
|
||
|
--- wmlib/menu.c.orig
|
||
|
+++ wmlib/menu.c
|
||
|
@@ -19,6 +19,10 @@
|
||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <string.h>
|
||
|
--- wrlib/alpha_combine.c.orig
|
||
|
+++ wrlib/alpha_combine.c
|
||
|
@@ -17,6 +17,10 @@
|
||
|
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||
|
*/
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include "wraster.h"
|
||
|
|
||
|
void RCombineAlpha(unsigned char *d, unsigned char *s, int s_has_alpha,
|
||
|
--- wrlib/tests/testdraw.c.orig
|
||
|
+++ wrlib/tests/testdraw.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xlib.h>
|
||
|
#include "wraster.h"
|
||
|
#include <stdio.h>
|
||
|
--- wrlib/tests/testgrad.c.orig
|
||
|
+++ wrlib/tests/testgrad.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xlib.h>
|
||
|
#include "wraster.h"
|
||
|
#include <stdio.h>
|
||
|
--- wrlib/tests/testrot.c.orig
|
||
|
+++ wrlib/tests/testrot.c
|
||
|
@@ -1,4 +1,8 @@
|
||
|
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xlib.h>
|
||
|
#include "wraster.h"
|
||
|
#include <stdlib.h>
|
||
|
--- wrlib/tests/view.c.orig
|
||
|
+++ wrlib/tests/view.c
|
||
|
@@ -1,3 +1,7 @@
|
||
|
+#ifdef HAVE_CONFIG_H
|
||
|
+#include "config.h"
|
||
|
+#endif
|
||
|
+
|
||
|
#include <X11/Xlib.h>
|
||
|
#include "wraster.h"
|
||
|
#include <stdlib.h>
|
||
|
--- configure.ac.orig
|
||
|
+++ configure.ac
|
||
|
@@ -67,8 +67,9 @@ dnl AC_CANONICAL_HOST -- already done by
|
||
|
|
||
|
dnl Checks for programs.
|
||
|
dnl ===================
|
||
|
-AC_ISC_POSIX
|
||
|
-AC_PROG_CC
|
||
|
+AC_PROG_CC_STDC
|
||
|
+AC_USE_SYSTEM_EXTENSIONS
|
||
|
+AC_SYS_LARGEFILE
|
||
|
AC_PROG_LN_S
|
||
|
AC_PROG_GCC_TRADITIONAL
|
||
|
AC_PROG_LIBTOOL
|
||
|
--- wrlib/gif.c.orig
|
||
|
+++ wrlib/gif.c
|
||
|
@@ -50,17 +50,24 @@ RImage *RLoadGIF(char *file, int index)
|
||
|
unsigned char rmap[256];
|
||
|
unsigned char gmap[256];
|
||
|
unsigned char bmap[256];
|
||
|
+ int dgiferr;
|
||
|
|
||
|
if (index < 0)
|
||
|
index = 0;
|
||
|
|
||
|
/* default error message */
|
||
|
RErrorCode = RERR_BADINDEX;
|
||
|
-
|
||
|
+#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR >= 5)
|
||
|
+ gif = DGifOpenFileName(file, &dgiferr);
|
||
|
+#else
|
||
|
gif = DGifOpenFileName(file);
|
||
|
-
|
||
|
+#endif
|
||
|
if (!gif) {
|
||
|
+#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR >= 5)
|
||
|
+ switch (dgiferr) {
|
||
|
+#else
|
||
|
switch (GifLastError()) {
|
||
|
+#endif
|
||
|
case D_GIF_ERR_OPEN_FAILED:
|
||
|
RErrorCode = RERR_OPEN;
|
||
|
break;
|
||
|
@@ -197,7 +204,11 @@ RImage *RLoadGIF(char *file, int index)
|
||
|
/* yuck! */
|
||
|
goto did_not_get_any_errors;
|
||
|
giferr:
|
||
|
+#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR >= 5)
|
||
|
+ switch (gif->Error) {
|
||
|
+#else
|
||
|
switch (GifLastError()) {
|
||
|
+#endif
|
||
|
case D_GIF_ERR_OPEN_FAILED:
|
||
|
RErrorCode = RERR_OPEN;
|
||
|
break;
|