Commit 109767a6 authored by Patrik Stridvall's avatar Patrik Stridvall Committed by Alexandre Julliard

Fixed missing prototypes and made it work with Solaris X11.

parent 478eee17
......@@ -107,7 +107,9 @@ END
$pre_file
$x11_incl#include <X11/$extensions_dir$name.h>
#include "debugtools.h"
#include "ts_$lcname.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL(x11)
......@@ -266,7 +268,11 @@ END
"a0,a1,a2,a3"
);
} else {
open(IN, "echo \"$x11_incl#include <X11/$extensions_dir$name.h>\" | gcc -L$X11_include_dir -E - | grep -v '^[ \t]*\$'|") || die "open";
open(IN,
"echo \"$x11_incl#include <X11/$extensions_dir$name.h>\" | " .
"gcc -L$X11_include_dir -DNeedFunctionPrototypes -E - | " .
"grep -v '^[ \t]*\$)' |"
) || die "open";
PROTO: while(<IN>) {
if(m'extern\s+([^()]*)\b([a-zA-Z0-9_]+)\s*\(') {
......
......@@ -12,7 +12,9 @@
#include <X11/Xlib.h>
#include <X11/extensions/xf86dga.h>
#include "debugtools.h"
#include "ts_xf86dga.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL(x11)
......
......@@ -15,7 +15,9 @@
#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>
#include "debugtools.h"
#include "ts_xf86vmode.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL(x11)
......
......@@ -10,7 +10,9 @@
#include <X11/Xlib.h>
#include "debugtools.h"
#include "ts_xlib.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL(x11)
......
......@@ -11,7 +11,9 @@
#ifdef HAVE_LIBXXPM
#include <X11/xpm.h>
#include "debugtools.h"
#include "ts_xpm.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL(x11)
......
......@@ -11,7 +11,9 @@
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include "debugtools.h"
#include "ts_xresource.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL(x11)
......
......@@ -12,7 +12,9 @@
#include <X11/Xlib.h>
#include <X11/extensions/XShm.h>
#include "debugtools.h"
#include "ts_xshm.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL(x11)
......
......@@ -12,7 +12,9 @@
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include <X11/Xutil.h>
#include "debugtools.h"
#include "ts_xutil.h"
#include "x11drv.h"
DEFAULT_DEBUG_CHANNEL(x11)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment