Skip to content

Commit 5f1ec76

Browse files
committed
Properly disable NetSIO on Windows per official atari800 limitations
- NetSIO is officially not supported on Windows in atari800 emulator - Windows users should use Altirra emulator + FujiNet-PC instead - Removed NetSIO from Windows minimal build configuration - Added explanation comments about platform limitation This fixes pthread.h missing error since NetSIO requires Unix threading that isn't available/supported on Windows builds.
1 parent 29f42f7 commit 5f1ec76

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

scripts/create-minimal-makefile.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cat > Makefile << 'EOF'
2828
2929
CC = gcc
3030
AR = ar
31-
CFLAGS = -O2 -DHAVE_CONFIG_H -I. -Isrc -DTARGET_LIBATARI800 -DNETSIO
31+
CFLAGS = -O2 -DHAVE_CONFIG_H -I. -Isrc -DTARGET_LIBATARI800
3232
ARFLAGS = rcs
3333
3434
LIBATARI800_OBJS = \
@@ -118,7 +118,8 @@ cat > src/config.h << 'EOF'
118118
#define SOUND 1
119119
120120
/* NetSIO support */
121-
#define NETSIO 1
121+
/* NETSIO officially not supported on Windows platform */
122+
#undef NETSIO
122123
123124
/* Screenshot support */
124125
#define HAVE_LIBPNG 1

src/windows_compat.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
#ifdef _WIN32
55

6+
// Disable NETSIO on Windows - officially not supported on Windows platform
7+
// NetSIO only works with Linux/macOS. Windows users should use Altirra + FujiNet-PC instead
8+
#ifdef NETSIO
9+
#undef NETSIO
10+
#endif
11+
612
// Prevent common macro conflicts
713
#define WIN32_LEAN_AND_MEAN
814
#define NOMINMAX

0 commit comments

Comments
 (0)