Commit Graph

206 Commits

Author SHA1 Message Date
skidd13 442efcffb0 (svn r12344) -Codechange: Check uint64 bitsize on compiletime too. 2008-03-05 18:51:26 +00:00
rubidium bbdc5a9314 (svn r11979) -Codechange: drop MSVC 2003 support because MSVC 2003 is broken in such a manner that it triggers an internal compiler error without any clue what of the code is wrong. Even trying to bisect the problem does not give a single line of code that causes the trouble. 2008-01-24 18:47:05 +00:00
rubidium 9444eb4484 (svn r11939) -Codechange: some type fixes and very initial steps into supporting NDS by default. Based on work by Dominik. 2008-01-21 23:55:57 +00:00
glx af59eb2543 (svn r11856) -Revert (r11772): since FS#1335 is solved, we do not need the extra checking and such anymore. 2008-01-15 00:11:28 +00:00
glx 119b03ea70 (svn r11772) -Change: add some extra checking in the hope to find the cause of FS#1335 2008-01-07 00:43:03 +00:00
rubidium b3f6c0734b (svn r11694) -Codechange: move more endianness related stuff to endian_func.hpp. 2007-12-25 13:28:09 +00:00
skidd13 da5d3a7b3b (svn r11687) -Codechange: move some defines to a better place 2007-12-23 14:06:03 +00:00
rubidium a773d45885 (svn r11684) -Codechange: split gfx.h in a type and functional header. 2007-12-23 10:56:02 +00:00
glx 6a83f9141b (svn r11611) -Codechange: it is now possible to use a define to enable asserts and show them in crash.log for MSVC release builds 2007-12-09 21:20:21 +00:00
glx 46c0edc80b (svn r11610) -Cleanup (r8572): remove orphan comment 2007-12-09 20:20:52 +00:00
rubidium 079c0fd66a (svn r11606) -Revert (r11584): since FS#1482 is solved, we do not need the extra checking and such anymore. 2007-12-09 15:17:49 +00:00
rubidium 42dbdbb7f9 (svn r11584) -Change: add some extra checking in the hope to find the cause of FS#1482. 2007-12-06 22:29:47 +00:00
skidd13 1a43c6a6f6 (svn r11563) -Codechange: Align the preprocessor code in stdafx.h with tabs 2007-12-02 21:43:16 +00:00
skidd13 58bb5c7525 (svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
This fixes also FS#1450
2007-11-19 20:40:14 +00:00
rubidium e15a5365d1 (svn r11467) -Fix [FS#1450]: OpenBSD has ALIGN already defined, causing compilation failures. 2007-11-18 20:21:41 +00:00
bjarni 04dd59df0e (svn r11325) -Fix (r11312)[FS#1357]: [OSX] fixed compilation on OSX 2007-10-21 10:53:23 +00:00
truelight b3bed1eda1 (svn r10778) -Fix: one-liners to allow MSVC and WINCE to work together (or anyway, a step towards that goal)
-Fix: put DEBUG lines under WINCE via a function designed for just that under WINCE
2007-08-03 23:26:12 +00:00
glx d8690139b4 (svn r10607) -Fix r10605: use '&&' in preprocessor directives (MSVC doesn't like 'and') 2007-07-18 02:08:56 +00:00
rubidium 736eafaf8e (svn r10605) -Fix [FS#1046]: also OpenBSD does not know wchar. Patch by Matthias. 2007-07-17 16:59:21 +00:00
rubidium efc7fdf2fd (svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h 2007-07-16 09:16:58 +00:00
rubidium b8e302d2a0 (svn r10562) -Fix: most of the MorphOS issues; MorphOS doesn't know about wchars, so disable all code that has to use wchars for MorphOS. 2007-07-14 20:30:35 +00:00
KUDr 255389a963 (svn r10428) -Fix: some more VC code analyzer warnings disabled 2007-07-04 02:37:48 +00:00
KUDr 7dc5d11448 (svn r10421) -Fix [MSVC]: suppress some code analyzer warnings for VC8 2007-07-03 23:08:51 +00:00
KUDr 6ced6f8f5f (svn r10292) -Fix: suppress VC 7.1 warning: "\src\texteff.cpp(251) : warning C4258: 'y' : definition from the for loop is ignored; the definition from the enclosing scope is used" which prevents compilation on MSVC 2003 2007-06-23 09:04:07 +00:00
rubidium 16ce2192e4 (svn r10212) -Fix [FS#723]: money overflow bugs in many locations. 2007-06-19 00:05:26 +00:00
rubidium 6680a6a0e6 (svn r10191) -Backport (r9148 from NoAI): detecting of CPU type (32 vs 64 bits). 2007-06-17 20:36:14 +00:00
rubidium 347c28b71a (svn r10182) -Codechange: rewrite most part of the file loading/searching to be more flexible.
-Codechange: add support for personal directories on Windows.
-Fix [FS#153, FS#193, FS#502, FS#816, FS#854]: fix issues related to fixed names, fixed places of files/directories and application bundles.
2007-06-17 15:48:57 +00:00
rubidium 142f2aba15 (svn r10073) -Codechange: make the NewGRF paths in the config file without any full paths (again). 2007-06-08 21:16:17 +00:00
glx 5b74a6ab2f (svn r9865) -Fix (r9862): NOT_REACHED() and error() declarations are needed for strgen 2007-05-17 20:00:45 +00:00
rubidium c8a84628f6 (svn r9862) -Fix (9842): strgen's error() does return in contrast to OTTD's error(). 2007-05-17 13:36:00 +00:00
rubidium f9e0d3835b (svn r9842) -Codechange: now NOT_REACHED is also triggered when debugging is disabled. 2007-05-15 13:01:52 +00:00
truelight a5b77fad87 (svn r9711) -Fix: don't include one system-header-file on MorphOS as it gives silly warnings and is unneeded for OpenTTD 2007-04-21 13:20:20 +00:00
belugas 607a55f4ec (svn r9662) -Documentation: Doxygen corrections and @file omissions 2007-04-17 20:23:13 +00:00
belugas dfe5533db6 (svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. The end of the preliminary work is near 2007-04-04 01:35:16 +00:00
KUDr 00bc893312 (svn r9104) -Fix(r9080, r9081): UINT32_MAX is undefined on MSVC, std::numeric_limits doesn't exist in gcc 2.95 (MorphOS), so back to tree and use ~0 instead (peter1138) 2007-03-10 20:05:31 +00:00
KUDr 933c406678 (svn r9081) -Fix(r9080): UINT32_MAX is undefined on MSVC. Use std::numeric_limits<uint32>::max() instead. 2007-03-09 23:26:21 +00:00
Darkvater 2536a14abd (svn r9055) -Codechange: Change windows unicode handling and allow a pure non-unicode build to function. Win9x binaries will be possible with mingw/nightly system. 2007-03-07 18:58:28 +00:00
rubidium f1abcf0ff7 (svn r9036) -Fix [SunOS]: SunOS/Solaris does not have stdint.h, so use inttypes.h which defines the things we need from stdint.h. 2007-03-06 21:18:25 +00:00
Darkvater c0971bafdc (svn r8974) -Fix: [win32] Define a win32 target platform ourselves so that we don't conflict with Vista Platform SDK (boekabart) 2007-03-02 15:02:12 +00:00
rubidium ee3d28ff8f (svn r8818) -Codechange: remove the #ifdef _cplusplus remnants. 2007-02-19 21:11:44 +00:00
truelight 0d91ed68a9 (svn r8674) [PSP] -Add: added network code for PSP, based on the work of Turulo
-Add: added general header-inclusing for PSP
2007-02-11 13:57:35 +00:00
truelight 7cd68b5a07 (svn r8647) -Codechange: add a general way to handle platforms who can only have a limited amount of file-descripters open at any given time.
The Fios keeps track how many times a file is opened, and tries to close up files which aren't used often.
  The first platform using this is PSP. Patch based on the work of Turulo.
2007-02-08 23:46:25 +00:00
KUDr f801a5c04f (svn r8613) -Fix [MorphOS]: offsetof() macro undefined for MorphOS build 2007-02-06 19:16:38 +00:00
KUDr 62486a73ed (svn r8574) -Fix: Silence VC2003 warning: "compiler limit : terminating debug information emission for enum 'StringIdEnum'" 2007-02-04 11:30:22 +00:00
rubidium ec058624ad (svn r8573) -Cleanup: obey the comment style in stdafx.h. 2007-02-04 11:20:24 +00:00
rubidium 1945653380 (svn r8572) -Fix: use the C++ version of the Standard C Library headers. This due to the fact that some stl headers will include them anyway and #undef several defines made in stdafx.h.
An example of this is that fopen that we redefine to _wfopen (for Windows Unicode compatability), is reverted to a non-Windows Unicode compatible fopen. This makes it impossible to start openttd with non-ASCII characters in the path or load savegames with non-ASCII characters under Windows.
2007-02-04 11:14:42 +00:00
KUDr 29a332e829 (svn r8413) -Fix [MORPHOS]: disable #define offsetof conflict on Morphos (seems that g++ 2.95 defines it anyway) 2007-01-26 08:37:48 +00:00
bjarni 072e429220 (svn r8382) -Fix (r8374): moved the include of stdint.h to the front of stdafx.h
This fixes the issue where OSX included stdint.h though other includes before defining __STDC_LIMIT_MACROS (and failed to compile because of this)
2007-01-24 00:55:35 +00:00
maedhros 18fa2ca233 (svn r8374) -Fix (r8367): LLONG_MAX isn't always defined, and INT64_MAX describes the
required value better anyway. However, INT64_MAX comes from stdint.h which
doesn't seem to exist on MSVC or MorphOS, so it's defined manually for them.
2007-01-23 15:47:28 +00:00
rubidium cfb7fb3ac4 (svn r8373) -Codechange: remove some obsolete MSVC6 compatability defines 2007-01-23 14:58:10 +00:00
truelight 4dae672e92 (svn r8306) [WinCE] -Fix: some functions don't exists in WinCE, so give an alternative where possible 2007-01-21 14:19:18 +00:00
KUDr f8a434e9fc (svn r8131) -Fix (r8125): g++ warning: 'invalid access to non-static data member ‘<class>::<member>’ of NULL object'. It is weird, but renaming the 'offsetof' macro helped. 2007-01-14 21:03:21 +00:00
orudge 6b58c1c2ff (svn r8042) - Fix: OS/2 compilation with GCC (thanks to Paul Smedley and TrueBrain for their help) 2007-01-10 19:39:54 +00:00
rubidium f35ed4bbc2 (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 2007-01-10 18:56:51 +00:00
bjarni 674dcfa5d2 (svn r7887) -Fix: [OSX] Endian32_Swap should always return a uint32, not a long unsigned int
This kills an OSX specific warning in newgrf_config.c
  Ensured that Endian16_Swap returns uint16 as well, even though that one didn't result in any warnings (yet)
2007-01-05 20:46:53 +00:00
rubidium 66bbf336c6 (svn r7759) -Merge: makefile rewrite. This merge features:
- A proper ./configure, so everything needs to be configured only once, not for every make.
 - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
 - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
 - Proper support for OSX universal binaries.
 - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
 - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.

Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
2007-01-02 19:19:48 +00:00
Renamed from stdafx.h (Browse further)