Compilation on unix systems without X-Windows (PATCH)

diff -urN SDL-1.1/include/SDL_syswm.h SDL-1.1.new/include/SDL_syswm.h
— SDL-1.1/include/SDL_syswm.h Thu Mar 16 09:20:37 2000
+++ SDL-1.1.new/include/SDL_syswm.h Wed Apr 12 09:08:33 2000
@@ -49,7 +49,7 @@
#else

/* This is the structure for custom window manager events */
-#if defined(unix) || defined(unix) || defined(_AIX)
+#if defined(ENABLE_X11)

Remember this header is included by application code which doesn’t
have access to the SDL configure macros, so this won’t work.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

SDL doesnt compile on unix systems that dont have X(such as my laptop),
this fixes it, and should do it beter than my last patch (both work just
as well, this way is just a little beter in my opinion)

Jess

-------------- next part --------------
diff -urN SDL-1.1/include/SDL_syswm.h SDL-1.1.new/include/SDL_syswm.h
— SDL-1.1/include/SDL_syswm.h Thu Mar 16 09:20:37 2000
+++ SDL-1.1.new/include/SDL_syswm.h Wed Apr 12 09:08:33 2000
@@ -49,7 +49,7 @@
#else

/* This is the structure for custom window manager events /
-#if defined(unix) || defined(unix) || defined(_AIX)
+#if defined(ENABLE_X11)
/
AIX is unix, of course, but the native compiler CSet doesn’t define unix */
#include <X11/Xlib.h>
#include <X11/Xatom.h>

oh, i wasnt thinking, hmm, can you think of any way to do this? would be
beter to not asume unix means X11

Sam Lantinga wrote:> > diff -urN SDL-1.1/include/SDL_syswm.h SDL-1.1.new/include/SDL_syswm.h

— SDL-1.1/include/SDL_syswm.h Thu Mar 16 09:20:37 2000
+++ SDL-1.1.new/include/SDL_syswm.h Wed Apr 12 09:08:33 2000
@@ -49,7 +49,7 @@
#else

/* This is the structure for custom window manager events */
-#if defined(unix) || defined(unix) || defined(_AIX)
+#if defined(ENABLE_X11)

Remember this header is included by application code which doesn’t
have access to the SDL configure macros, so this won’t work.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Newsgroups: loki.open-source.sdl

oh, i wasnt thinking, hmm, can you think of any way to do this? would be
beter to not asume unix means X11

Problem is that the rest of the drivers (SVGAlib, GGI, fbcon) are pretty
unstable and unfinished… so really we need to finish them. This is one of
those things that I started and got bored with, mainly because SVGAlib, GGI,
and fbcon are nasty by comparison to DGA 2.0 :slight_smile:

Nicholas

----- Original Message -----
From: jessh@lbjhs.net (Jess)
To: sdl at lokigames.com
Date: Friday, April 21, 2000 4:48 PM
Subject: [SDL] Re: Compilation on unix systems without X-Windows (PATCH)

Problem is that the rest of the drivers (SVGAlib, GGI, fbcon) are pretty
unstable and unfinished…

What do you mean? As far as I know, the fbcon is one of the most developed
video drivers, and GGI and SVGAlib are functional but don’t have full hardware
acceleration support.

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

Problem is that the rest of the drivers (SVGAlib, GGI, fbcon) are pretty
unstable and unfinished…

What do you mean? As far as I know, the fbcon is one of the most developed
video drivers, and GGI and SVGAlib are functional but don’t have full
hardware
acceleration support.

fbcon I just have your word on. You very distinctly said it wasn’t finished
(and I would show you the message if it wasn’t for the fact that I just
reformatted my hard drive… again)

As for GGI and SVGAlib, I would consider not having full hardware
acceleration “unfinished”, and I have had a multitude of interesting
problems with SVGAlib on my old computer. (Odd crashing at program
termination, screen blackouts,…) GGI I just talked to somebody else about
who said it gave him problems, so I don’t have any real evidence there. They
then cleared themselves up… whether this was an upgrade of SDL or some
internal GGI issue I don’t know. I will see if I can get him to do some more
tests.

In addition, I was under the impression that internally GGI still has its
"unfinished" and “unstable” flags (it does in the docs…)

See ya,
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

BTW: got the lexx/yacc book today… you’re right, it rules!

Nicholas

----- Original Message -----
From: slouken@devolution.com (Sam Lantinga)
To: sdl at lokigames.com
Date: Friday, April 21, 2000 5:59 PM
Subject: Re: [SDL] Compilation on unix systems without X-Windows (PATCH)