rubidium
978d4e4eaa
(svn r27102) -Fix [FS#6194]: money values would end up wrong in strings when outside of the bounds of a 32 bits integer
2015-01-01 20:50:43 +00:00
fonsinchen
0affe0e119
(svn r27040) -Fix: Don't use GCC diagnostic push/pop if unsupported
2014-10-25 12:32:42 +00:00
frosch
049c7dba29
(svn r26922) -Fix: Include strings.h on HAIKU for strcasecmp. Some platforms do not have a strings.h at all, most define the functions in string.h as well.
2014-09-25 20:45:25 +00:00
rubidium
95549e6da5
(svn r26771) -Cleanup: remove OTTD2SQ and SQ2OTTD
2014-09-06 17:30:33 +00:00
rubidium
e874be7691
(svn r26769) -Codechange [Squirrel]: remove the difference between some platforms having wchar for SQChar and others just char; always use char (and UTF-8) like in the rest of (internal) OpenTTD
2014-09-06 17:20:45 +00:00
rubidium
034735a54c
(svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL)
2014-04-25 15:40:32 +00:00
rubidium
baa9dd4b5d
(svn r26500) -Cleanup: remove unused snprintf implementation
2014-04-24 18:40:16 +00:00
zuu
35a2435b9d
(svn r26226) -Fix (r26212): Compilation in visual studio 2008 failed
2014-01-05 10:15:57 +00:00
planetmaker
b67933bd4d
(svn r26223) -Codechange: Silence some compile warnings about unititialized variables in the SSE blitters (MJP)
2014-01-03 18:43:10 +00:00
michi_cc
b2d68431d5
(svn r25677) -Codechange: [Win32] There are no 64-bit Windows versions below XP and we can safely assume it as the target platform.
2013-08-05 20:36:58 +00:00
michi_cc
66d9ded71f
(svn r25674) -Fix: [Win32] The console code page for non-Unicode builds is not the normal ANSI code page and definitely not UTF-8 either.
2013-08-05 20:36:47 +00:00
michi_cc
49988bc599
(svn r25128) -Codechange: [Win32] MSVC 2010 comes with stdint.h.
2013-03-30 13:50:46 +00:00
frosch
1644cd08b4
(svn r24926) -Fix [FS#5373]: Check integer min/max macros individually, and define them if missing.
2013-01-20 15:02:28 +00:00
michi_cc
44f9260ad4
(svn r24782) -Codechange: [Win32] Disable MSVC warning about using 'this' in a base member initializer list as we don't use it in any problematic way.
2012-12-03 22:08:03 +00:00
michi_cc
5bea1b3007
(svn r24416) -Fix [FS#5231]: [Win32] Unbreak NewGRF MD5 sum calculation. Macros and side effects don't mix, especially if there's some obscure '#define min' in a windows header that nobody thinks of.
2012-07-19 19:06:27 +00:00
truebrain
aa1a0053b0
(svn r23640) -Fix: stop using FORCEINLINE (1/3rd of the instances were, the others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
2011-12-20 17:57:56 +00:00
smatz
36747f96a6
(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
2011-12-18 17:17:18 +00:00
rubidium
33d71b45fe
(svn r23198) -Codechange: introduce a free that takes const pointers so we don't need to cast to void/non-const before being able to free
2011-11-12 13:00:29 +00:00
frosch
398ed7ebb8
(svn r22881) -Fix (r22875): GCC warnings on 64bit systems.
2011-09-03 12:45:45 +00:00
michi_cc
dcef62040f
(svn r22875) -Codechange: Add some asserts and checks to better prevent overflow of the argument to malloc. (monoid)
2011-09-02 20:54:51 +00:00
alberth
7a625aa7df
(svn r22171) -Add: Add settings generator program.
2011-03-03 20:59:59 +00:00
smatz
817392c9b0
(svn r22041) -Codechange: add a check that we called PoolItem::CanAllocateItem() before actually allocating it
2011-02-09 18:55:51 +00:00
glx
3da0c86304
(svn r21680) -Fix (r21656): of course MSVC complains
2010-12-31 16:13:34 +00:00
rubidium
0a34d95374
(svn r19853) -Fix [FS#3840]: revert r19781 and apply a more sensible version with the same effect
2010-05-18 21:17:25 +00:00
glx
862321c62a
(svn r19787) -Fix: compilation with MinGW GCC 4.5.0 and UNICODE
2010-05-11 20:44:58 +00:00
rubidium
a06b3c0646
(svn r19781) -Fix [FS#3809]: compilation on NetBSD failed (Krille)
2010-05-10 17:11:24 +00:00
rubidium
fe63c484cb
(svn r19778) -Change: use the value from PATH_MAX (POSIX) for MAX_PATH (Windows/OpenTTD) if it exists
2010-05-10 09:43:49 +00:00
rubidium
d058df8828
(svn r19698) -Add: macros to get the size/length of a variable within a class
2010-04-23 14:56:14 +00:00
smatz
258b128a56
(svn r19614) -Codechange: "it's" => "its" where appropriate
2010-04-12 14:12:47 +00:00
frosch
19e26fcb12
(svn r19604) -Codechange: Reintroduce assert_tcompile().
2010-04-11 15:43:54 +00:00
yexo
5d37ff11ba
(svn r19570) -Add: [NewGRF] support for extended text code 0x9A 11, print qword
2010-04-06 23:45:10 +00:00
yexo
128ef7617d
(svn r19352) -Fix (r19332): MSVC doesn't have M_PI in math.h
2010-03-06 15:30:40 +00:00
rubidium
b893abb356
(svn r19248) -Fix: DOS 'port' did not compile anymore
2010-02-25 13:06:00 +00:00
rubidium
52047aef75
(svn r19177) -Codechange: introduce INT8_MIN/MAX and UINT8_MAX for MSVC.
2010-02-20 22:58:25 +00:00
rubidium
0bf54aaedb
(svn r18862) -Fix [FS#3544]: don't pass AI strings through iconv
2010-01-18 15:41:38 +00:00
smatz
b27a12b8b6
(svn r18057) -Codechange: replace assert_compile() by new one which works with gcc3.3 and removes the need of assert_tcompile()
2009-11-13 15:53:51 +00:00
rubidium
eeb6cf766b
(svn r18045) -Fix: GCC 4.5@HEAD not compiling OpenTTD anymore because of a "non-placement deallocation function [is] selected for placement delete", or in other words delete(void *, size_t) is 'magic'.
...
We implemented these delete(void *, size_t) operator functions because MSVC warned that "no matching operator delete found; memory will not be freed if initialization throws an exception" for new(size_t, size_t).
This disables MSVC warning about this because we do not use exceptions in the (constructors that use the) overridden allocation functions, as such they will never be called; delete(void *) remains necessary though.
2009-11-11 21:15:58 +00:00
frosch
966d8d8f52
(svn r17810) -Codechange/Fix: Add assert_tcompile() and use it.
...
OTTD's traditional assert_compile() does not work inside templates for gcc compilers, static_assert() does though.
The new assert_tcompile() resolves into static_assert() if present, or into a runtime assert() else.
2009-10-18 20:26:29 +00:00
michi_cc
83e1f7358f
(svn r17706) -Codechange: [OSX] Rework the crash handling to use the common CrashLog infrastructure.
2009-10-04 21:08:30 +00:00
rubidium
d579a9366a
(svn r17606) -Add: initial support for Haiku; a dedicated server with zlib and libpng compiles and links (for me). Something's fishy with the network so it doesn't actually work (yet)
2009-09-21 18:36:33 +00:00
smatz
17993769c0
(svn r17465) -Codechange: use builtin static_assert() for assert_compile() if available
2009-09-07 21:02:10 +00:00
rubidium
a595d3f8c3
(svn r17453) -Add: crash logger for all Unixy OSes; should work for all, but I don't have all exotic machines so it might break compilation on the more exotic configurations
2009-09-07 12:14:45 +00:00
rubidium
1d7619fdb5
(svn r17450) -Codechange: refactor the windows crash logger so parts of it can be reused by other crash logger implementations
2009-09-07 11:10:49 +00:00
rubidium
fab411abdc
(svn r17410) -Codechange: use the same define for determining whether windows does crash reports instead of using several that aren't necessarily equal
2009-09-03 22:32:08 +00:00
smatz
8cf944001d
(svn r17358) -Fix: compilation was broken for gcc older than 3.4
2009-09-01 20:59:44 +00:00
rubidium
99d46e0ad7
(svn r17248) -Fix: add GPL license notice where appropriate
2009-08-21 20:21:05 +00:00
yexo
c463176a9c
(svn r17219) -Cleanup: remove a lot of unused string code
2009-08-19 13:13:32 +00:00
rubidium
6cf59514d1
(svn r16828) -Codechange: attempt at making OSX compile with the 10.6 SDK too; no guarantees ofcourse...
2009-07-14 17:16:32 +00:00
smatz
fe57925910
(svn r16715) -Codechange: add attribute to assert_compile(), so it doesn't warn when used inside function
2009-07-01 21:29:03 +00:00
smatz
d091c7d80f
(svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD for months. All attempts to do another workaround failed.
2009-06-01 11:49:46 +00:00