Age | Commit message (Collapse) | Author |
|
Global; except for the 32-bit SSE blitter, which has some #DEFINEs
in not-very-nice places.
|
|
Clang-cl presents as both _MSC_VER and __clang__ in the preprocessor which makes some things confusing.
|
|
CMake works on all our supported platforms, like MSVC, Mingw, GCC,
Clang, and many more. It allows for a single way of doing things,
so no longer we need shell scripts and vbs scripts to work on all
our supported platforms.
Additionally, CMake allows to generate project files for like MSVC,
KDevelop, etc.
This heavily reduces the lines of code we need to support multiple
platforms from a project perspective.
Addtiionally, this heavily improves our detection of libraries, etc.
|
|
|
|
Fix the following compile errors:
In file included from openttd/src/debug.h:15:0,
from openttd/src/string.cpp:13:
openttd/src/cpu.h:35:19: error: 'uint' was not declared in this scope
bool HasCPUIDFlag(uint type, uint index, uint bit);
openttd/src/string.cpp: In function 'char* strcasestr(const char*, const char*)':
openttd/src/string.cpp:548:7: error: 'strncasecmp' was not declared in this scope
if (strncasecmp(haystack, needle, needle_len) == 0) return const_cast<char *>(haystack);
openttd/src/strgen/strgen_base.cpp: In function 'void EmitPlural(Buffer*, char*, int)':
openttd/src/core/alloc_func.hpp:136:6: error: 'alloca' was not declared in this scope
(T*)alloca((num_elements) * sizeof(T)))
Signed-off-by: Joe Stringer <joe@wand.net.nz>
|
|
(#7614)
|
|
|
|
text layout code.
|
|
In 10 years there was no active development on DOS. Although it
turned out to still work, the FPS was very bad. There is little
interest in the current community to look into this.
Further more, we like to switch to c++11 functions for threads,
which are not implemented by DJGPP, the only current compiler
for DOS.
Additionally, DOS is the only platform which does not support
networking. It is the reason we have tons of #ifdefs to support
disabling networking.
By removing DOS support, we can both use c++11 functions for threads,
and remove all the code related to disabling network. Sadly, this
means we have to see DOS go.
Of course, if you feel up for the task, simply revert this commit,
and implement stub c++11 functions for threads and stub functions
for networking. We are more than happy to accept such Pull Request.
|
|
This might break older Haiku versions, but it is hard to tell.
|
|
In 10 years there is no commit to change how BeOS works, and we
have no active maintainer for it. It is unlikely it works in its
current state (but not impossible).
With the arrival of SDL2 (and removal of SDL), BeOS is no longer
support. SDL2 suggests to use Haiku instead of BeOS.
|
|
|
|
In 10 years there is no commit to change how MorphOS works, and we
have no active maintainer for it. It is unlikely it works in its
current state (but not impossible).
With the arrival of SDL2 (and removal of SDL), MorphOS is no longer
support. There is an SDL2 port for MorphOS, but it is not maintained
by upstream SDL2, and nobody can currently test it out.
If anyone wants to re-add MorphOS, please do (revert this patch,
fix the problems, and create a Pull Request). If you need any help
doing so, let us know! It is not that we don't like MorphOS, it is
that we don't have anyone fixing the problems :(
|
|
macro _WIN32
|
|
Removes the need for us to provide OpenTTD-useful package
|
|
style
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
outside of the bounds of a 32 bits integer
|
|
|
|
do not have a strings.h at all, most define the functions in string.h as well.
|
|
|
|
platforms having wchar for SQChar and others just char; always use char (and UTF-8) like in the rest of (internal) OpenTTD
|
|
the return is not NULL)
|
|
|
|
|
|
variables in the SSE blitters (MJP)
|
|
XP and we can safely assume it as the target platform.
|
|
not the normal ANSI code page and definitely not UTF-8 either.
|
|
|
|
define them if missing.
|
|
a base member initializer list as we don't use it in any problematic way.
|
|
Macros and side effects don't mix, especially if there's some obscure '#define min' in a windows header that nobody thinks of.
|
|
others were still regular inline), but make sure inline is always a 'forced' inline (I am looking at you MSVC)
|
|
out some indirect calls
|
|
don't need to cast to void/non-const before being able to free
|
|
|
|
overflow of the argument to malloc. (monoid)
|
|
|
|
PoolItem::CanAllocateItem() before actually allocating it
|
|
|
|
with the same effect
|
|
|
|
|
|
(Windows/OpenTTD) if it exists
|