Commit graph

13 commits

Author SHA1 Message Date
Hubert Maier
794f292b5d
AMIGAOS: Use compiler defines 2024-03-16 01:59:27 +02:00
Cameron Cawley
5b1b14ad80 COMMON: Mark more symbols as const 2023-12-26 20:23:59 +01:00
Donovan Watteau
c5d52c877f BACKENDS: ENET: Fix MSVC C4245 signed/unsigned mismatch warning
Missed in previous commit 73d61b3438.
2023-04-11 12:57:51 +02:00
Donovan Watteau
73d61b3438 BACKENDS: ENET: Fix MSVC C4245 signed/unsigned mismatch warning 2023-04-11 11:06:23 +02:00
Orgad Shaneh
b725686077 BACKENDS: ENET: Fix GCC/MinGW warning
packet.cpp:121:9: warning: declaration of 'byte' shadows a global declaration [-Wshadow]
  121 |     int byte;
      |         ^~~~
In file included from C:/msys64/mingw64/include/wtypes.h:8,
                 from C:/msys64/mingw64/include/winscard.h:10,
                 from C:/msys64/mingw64/include/windows.h:97,
                 from C:/msys64/mingw64/include/winsock2.h:23,
                 from C:/Projects/scummvm/backends/networking/enet/source/win32.h:18,
                 from C:/Projects/scummvm/backends/networking/enet/source/enet.h:16,
                 from C:/Projects/scummvm/backends/networking/enet/source/packet.cpp:7:
C:/msys64/mingw64/include/rpcndr.h:63:25: note: shadowed declaration is here
   63 |   typedef unsigned char byte;
      |                         ^~~~

Fix by defining WIN32_LEAN_AND_MEAN, which prevents this typedef.
2023-04-09 19:00:01 -03:00
Le Philousophe
673ff82b8a BACKENDS: ENET: Yet another fix for Vita build
SOMAXCONN is not defined in their toolchain and a patch in their
boost package uses this value
2023-03-07 13:37:42 +01:00
Le Philousophe
36ccf8b29a BACKENDS: ENET: Yet another fix for AmigaOS build
The previous one was not complete
2023-03-07 13:37:42 +01:00
Le Philousophe
57f3d6ebf3 BACKENDS: ENET: Fix AmigaOS build
There, msg_name is of type char *
2023-03-07 08:41:30 +01:00
Le Philousophe
e51b9a7325 BACKENDS: ENET: Fix Vita build
fcntl is supported here while ioctl isn't.
2023-03-07 08:41:30 +01:00
Little Cat
13616c37ec BACKENDS: ENET: Fix casting. 2023-03-06 00:07:13 +01:00
Little Cat
bd1872c2ab BACKENDS: ENET: Now compiles on Windows. 2023-03-06 00:07:13 +01:00
Little Cat
cef3054212 BACKENDS: ENET: Check and set additional defines. 2023-03-06 00:07:13 +01:00
Little Cat
c16244a23a BACKENDS: ENET: Compile stable 1.3.17 source. 2023-03-06 00:07:13 +01:00