Commit Graph

157 Commits

Author SHA1 Message Date
Sam Lantinga
ec7cfdfea1 Date: Mon, 27 Feb 2006 17:01:43 +0100
From: "William Petiot [exoide]"
Subject: Re: [SDL] cvs version: standard win32 SDL.DLL file test [patch]

I found a bug or two in previous patch, so here is a patch to correct this.
2006-02-27 19:19:22 +00:00
Sam Lantinga
9850649e32 Removing unused Makefile.am files 2006-02-27 15:51:34 +00:00
Sam Lantinga
aa824dc1ea Did I mention I'm anal? :) Fixed spacing in SDL_rwops.h 2006-02-27 04:46:34 +00:00
Sam Lantinga
3d7fe80708 Prefer the raw Win32 API over stdio for file RWops 2006-02-27 04:16:44 +00:00
Sam Lantinga
a85789aa95 Date: Mon, 27 Feb 2006 02:17:29 +0100
From: "William Petiot [exoide]"
Subject: Re: [SDL] cvs version: questions regarding HAVE_STDIO_H in standard w

I managed to get a first implementation of it, which I tested for "simple" use
with tests sample apps, they work ok. I think this needs more tests.

Here is the diff against CVS/SDL12, attached.
2006-02-27 03:48:48 +00:00
Sam Lantinga
aaf71291d0 Updated OS/2 build, yay! 2006-02-26 19:30:21 +00:00
Sam Lantinga
2861771aa5 SDL_windows.h is no longer necessary 2006-02-25 22:18:25 +00:00
Sam Lantinga
c70756d256 *** empty log message *** 2006-02-25 18:52:36 +00:00
Sam Lantinga
5146610dc6 Update for Visual C++ 6.0 2006-02-24 18:24:57 +00:00
Sam Lantinga
19ea2b958d Updated with MrC includes and function definitions 2006-02-24 17:03:06 +00:00
Sam Lantinga
911e5db87e *** empty log message *** 2006-02-24 10:23:49 +00:00
Sam Lantinga
dead618337 Hmm, how am I going to keep from committing bad versions of this? 2006-02-24 09:58:03 +00:00
Sam Lantinga
7e11ec69f9 Updated MacOS Classic MPW build 2006-02-24 09:57:14 +00:00
Sam Lantinga
b633882919 Updated for Visual Studio Express 2005 2006-02-24 08:17:28 +00:00
Sam Lantinga
026aec11d6 Added pre-configured versions of SDL_config.h for various platforms 2006-02-24 07:26:31 +00:00
Sam Lantinga
0230236dd4 *** empty log message *** 2006-02-21 09:14:58 +00:00
Sam Lantinga
190b425364 Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
2006-02-21 08:46:50 +00:00
Sam Lantinga
35a29575fc NetBSD support 2006-02-20 03:57:03 +00:00
Sam Lantinga
eda62d8a77 On FreeBSD, alloca is defined in stdlib.h 2006-02-20 02:30:15 +00:00
Sam Lantinga
0ef73d9eae Use only safe string functions 2006-02-19 23:46:34 +00:00
Sam Lantinga
2c134486a9 Whoops 2006-02-19 06:02:57 +00:00
Sam Lantinga
1d5ee7e595 Doh! Bitten by search and replace. :) 2006-02-18 07:05:18 +00:00
Sam Lantinga
b4ce56d8b0 More fixes for building on BeOS 2006-02-18 06:51:00 +00:00
Sam Lantinga
49255e3fa6 Fixes for BeOS and Solaris builds 2006-02-17 08:43:23 +00:00
Sam Lantinga
f05187e232 New configure-based build system. Still work in progress, but much improved 2006-02-16 10:11:48 +00:00
Sam Lantinga
7eac789438 *** empty log message *** 2006-02-10 07:29:08 +00:00
Sam Lantinga
bcdfa07625 *** empty log message *** 2006-02-10 07:03:22 +00:00
Sam Lantinga
769424426d More header massaging... works great on Windows. ;-) 2006-02-10 06:48:43 +00:00
Sam Lantinga
438d1885a7 Whoops, need this. :) 2006-02-10 03:21:39 +00:00
Sam Lantinga
5022a01e6c *** empty log message *** 2006-02-10 03:19:02 +00:00
Sam Lantinga
c9070f53df *** empty log message *** 2006-02-10 03:00:38 +00:00
Sam Lantinga
20c4849e7e Fixed build problem with SDL_string.c
Officially deprecated SDL_byteorder.h, SDL_getenv.h and SDL_types.h
Moved endian-related SDL_rwops code into SDL_rwops.c
2006-02-09 09:38:05 +00:00
Sam Lantinga
8df54cd371 Started the process of improving configure support, and merging C types
and library support into a single header.
2006-02-09 09:07:13 +00:00
Sam Lantinga
35665a2a6c Disable freaking autoheader. :) 2006-02-09 05:46:55 +00:00
Sam Lantinga
46a48c3887 Check for strtod 2006-02-08 09:06:34 +00:00
Sam Lantinga
05f9cca4a3 Default to build SDL without MSVCRT 2006-02-08 08:55:33 +00:00
Sam Lantinga
b0e5472b68 Fixes for Visual C++ 6.0 2006-02-07 18:36:54 +00:00
Sam Lantinga
d72a9898ed Configure dynamically generates SDL_config.h
I'm still wrestling with autoheader, but this should work for now...
Fixed lots of build problems with C library support disabled
2006-02-07 12:11:33 +00:00
Sam Lantinga
02cc6c0f11 Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
2006-02-07 06:59:48 +00:00
Sam Lantinga
b9704a2004 SDL_config.h will eventually be a general feature set test,
which will be useful for any program built with SDL on a given platform.
2006-02-06 17:28:04 +00:00
Sam Lantinga
f62242e296 A few fixes to get this building on Linux again 2006-02-06 08:46:14 +00:00
Sam Lantinga
82bfaee73a It's now possible to build SDL without any C runtime at all on Windows,
using Visual C++ 2005
2006-02-06 08:28:51 +00:00
Sam Lantinga
808a16717c Updated copyright information and removed rcs id lines (problematic in branch merges)
I batch edited these files, so please let me know if I've accidentally removed anybody's
credit here.
2006-02-01 06:32:25 +00:00
Sam Lantinga
e3e00a7abd Oops 2006-01-31 01:16:21 +00:00
Sam Lantinga
99fbd97a6a *** empty log message *** 2006-01-30 13:32:31 +00:00
Sam Lantinga
f8d589d4aa Date: Fri, 18 Feb 2005 20:49:35 +0200 (EET)
From: ville
Subject: [SDL] Changing, at least some, anonymous enums to named enums.

Howdy,

Could, some if not all, enums be named rather than being anonymous enums?
I ran into troubles with the enum describing event types in SDL_events.h.
The problem is that an anonymous enum cannot be used in C++ templates like
so:

enum { C };

template< typename T >
void
f( T ) {
}


f( C );
2006-01-29 23:14:04 +00:00
Sam Lantinga
5734de0a4a *** empty log message *** 2006-01-27 08:47:15 +00:00
Sam Lantinga
5d587ee484 Use Win32 API for putenv/getenv to avoid C runtime conflicts 2006-01-26 06:06:56 +00:00
Sam Lantinga
7ce4dacee1 *** empty log message *** 2006-01-25 06:53:50 +00:00
Sam Lantinga
7f458450f5 Date: Thu, 19 Jan 2006 20:02:29 +0200
From: Vassilis Virvilis <vasvir@iit.demokritos.gr>
Subject: [SDL] Request: Please reconsider adding tag in SDL_Event

Hi,

Patch in question:

--- include/SDL_events.h        20 Aug 2004 18:57:01 -0000      1.11
+++ include/SDL_events.h        19 Jan 2006 17:35:09 -0000
@@ -214,7 +214,7 @@
  } SDL_SysWMEvent;

  /* General event structure */
-typedef union {
+typedef union SDL_Event {
         Uint8 type;
         SDL_ActiveEvent active;
         SDL_KeyboardEvent key;

Reasoning:
----------
1) Allows forward declaration of the SDL_Event union in C++. Please
note that in plain C it is possible to forward declare it.

2) Forward declaration is good because it allows encapsulation. It hides
the specific implementation and does not necessarily exposes SDL staff
to my appication's namespace

3) It can't harm plain C because tags are living in a different namespace
than typenames

4) It is already done like this in other places in SDL. Check for example
SDL_KeySym, and SDL_.*Event structures.

5) Right now I have to include SDL/event.h from a C++ header file. See 2)
2006-01-20 13:07:25 +00:00