bugGlobulation 2 - Bugs: bug #8228, Wrong inclusion of SDL/SDLxxx.h

 
 

bug #8228: Wrong inclusion of SDL/SDLxxx.h

Submitted by:  Samuel Tardieu <tardieu>
Submitted on:  Sat 20 Mar 2004 07:49:25 PM UTC  
 
Severity: 3 - NormalStatus: None
Assigned to: NoneOpen/Closed: Closed
Release: NoneOperating System: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 21 Mar 2004 05:27:41 PM UTC, comment #1:

Bug acknowledged, fixed in CVS

Thanks for testing and reporting bugs to Globulation 2.

Steph, for The Glob2's dev team.

Stephane Magnenat <nct>
Project Administrator
Sat 20 Mar 2004 07:49:25 PM UTC, original submission:

The source code contains lots of

#include <SDL/SDL_xxx.h>

It should contain only

#include <SDL_xxx.h>

as "sdl-config --cflags" returns the full path (e.g.
"/usr/include/SDL"). As most of the time SDL is installed
in a standard location, it will work by chance (in my
example, "/usr/include" being in the include path, the
#include will work).

This problem was noticed on FreeBSD where SDL include files
for SDL 1.2.7 are installed in /usr/local/include/SDL11.
"sdl-config --cflags" correctly returns "-I/usr/local/include/SDL11", but the compilation then fails
because of the wrong inclusion directives.

The attached patch (apply with "-p1") fixes that in Globulation2 0.8.4.

Samuel Tardieu <tardieu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #1142:  patch-globulation-sdl.txt added by tardieu (6KiB - text/plain - Change #include <SDL/SDLxxx.h> into #include <SDLxxx.h>)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 21 Mar 2004 05:28:12 PM UTCnctOpen/ClosedOpen=>Closed
Sat 20 Mar 2004 07:49:25 PM UTCtardieuAttached File-=>Added patch-globulation-sdl.txt, #1123

Back to the top


Powered by Savane 3.1-cleanup1