Skip to content

Commit ee4d71a

Browse files
author
stefan.haubenthal
committed
More conditional compiling
1 parent 31b8a47 commit ee4d71a

File tree

4 files changed

+34
-14
lines changed

4 files changed

+34
-14
lines changed

6551_modem.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ static int socket_bind(int sock, int port, int domain)
614614
#endif
615615

616616

617-
#if defined(__LINUX__) || defined(__APPLE__) || defined(__amigaos4__)
617+
#if defined(__LINUX__) || defined(__APPLE__) || defined(__amigaos4__) || defined(__MORPHOS__)
618618
fcntl(sock, F_SETFL, fcntl(sock, F_GETFL, 0) | O_NONBLOCK);
619619
#endif
620620

@@ -647,7 +647,7 @@ static int socket_accept(int sock, int* sck)
647647
return 0;
648648
else
649649
{
650-
#if defined(__LINUX__) || defined(__amigaos4__)
650+
#if defined(__LINUX__) || defined(__amigaos4__) || defined(__MORPHOS__)
651651
fcntl(*sck, F_SETFL, fcntl(*sck, F_GETFL, 0) | O_NONBLOCK);
652652
#endif
653653

@@ -744,7 +744,7 @@ static int socket_connect(int sock, const char* host, int port, int domain)
744744
}
745745
#endif
746746

747-
#if defined(__LINUX__) || defined(__APPLE__) || defined(__amigaos4__)
747+
#if defined(__LINUX__) || defined(__APPLE__) || defined(__amigaos4__) || defined(__MORPHOS__)
748748
fcntl(sock, F_SETFL, fcntl(sock, F_GETFL, 0) | O_NONBLOCK);
749749
#endif
750750

Oricutron.guide

+17-11
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
@author "ReadMe2Guide"
33
@node Main "Main"
44
@toc Contents
5-
@$VER: Oricutron 1.1.0 (07.12.13)
5+
@$VER: Oricutron 1.2.0 (08.11.14)
66
Oricutron 1.2
77
-------------
88

9-
(c)2009-2014 Peter Gordon ([email protected])
9+
(c)2009-2014 Peter Gordon (pete\@petergordon.org.uk)
1010

1111
This is a work in progress.
1212

@@ -56,6 +56,12 @@ Credits
5656
Peter Gordon
5757

5858

59+
BeOS/Haiku port
60+
---------------
61+
62+
Francois Revol
63+
64+
5965
MacOS X port
6066
------------
6167

@@ -331,14 +337,14 @@ bsm $0c00 rwc <-- Break just before the CPU accesses $0c00, or just after i
331337

332338

333339
@endnode
334-
@node InternationalKeyboards "International Keyboards under Linux and Mac OS X"
340+
@node InternationalKeyboardsunderLinuxandMacOSX "International Keyboards under Linux and Mac OS X"
335341
@toc Contents
336342
International Keyboards under Linux and Mac OS X
337343
================================================
338344

339345
There are lots of problems with some international keyboards under Linux and Mac OS X.
340346
The best way to cope with them is to install an UK or US keyboard definition and to
341-
switch to it *before* starting oricutron.
347+
switch to it @{b}before@{ub} starting oricutron.
342348

343349
Under Mac OS X you can do that in the "System Preferences", "Keyboard", "Input sources".
344350
Click on the + and search for the UK or US keyboard.
@@ -351,7 +357,7 @@ For a better solution look under "Visual Keyboard" down here.
351357

352358

353359
@endnode
354-
@node Visualkeyboard "Visual Keyboard"
360+
@node VisualKeyboard "Visual Keyboard"
355361
@toc Contents
356362
Visual Keyboard
357363
===============
@@ -381,7 +387,7 @@ sticky_mod_keys = yes
381387

382388

383389
@endnode
384-
@node Serialcard "Serial card (ACIA) emulation"
390+
@node Serialcard(ACIA)emulation "Serial card (ACIA) emulation"
385391
@toc Contents
386392
Serial card (ACIA) emulation
387393
============================
@@ -416,7 +422,7 @@ ATD ip:port - connects as client to ip:port. 'ip' can be any host name (ex.:loca
416422

417423

418424
@endnode
419-
@node Rompatchfiles "ROM patch files"
425+
@node ROMpatchfiles "ROM patch files"
420426
@toc Contents
421427
ROM patch files
422428
===============
@@ -441,8 +447,8 @@ where XXXX,YYYY,ZZZZ - are hex addresses relative to ROM start address
441447
@{"Keys" link Keys}
442448
@{"Monitor instructions" link Monitorinstructions}
443449
@{"Breakpoints" link Breakpoints}
444-
@{"International Keyboards under Linux and Mac OS X" link InternationalKeyboards}
445-
@{"Visual Keyboard" link Visualkeyboard}
446-
@{"Serial card (ACIA) emulation" link Serialcard}
447-
@{"ROM patch files" link Rompatchfiles}
450+
@{"International Keyboards under Linux and Mac OS X" link InternationalKeyboardsunderLinuxandMacOSX}
451+
@{"Visual Keyboard" link VisualKeyboard}
452+
@{"Serial card (ACIA) emulation" link Serialcard(ACIA)emulation}
453+
@{"ROM patch files" link ROMpatchfiles}
448454
@endnode

ReadMe.txt

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ Credits
4545
Peter Gordon
4646

4747

48+
BeOS/Haiku port
49+
---------------
50+
51+
Francois Revol
52+
53+
4854
MacOS X port
4955
------------
5056

main.c

+8
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ static void load_config( struct start_opts *sto, struct machine *oric )
432432
oric->aciabackendcfg = oric->aciabackend = ACIA_TYPE_LOOPBACK;
433433
else if(!strncasecmp("modem", oric->aciabackendname, 5))
434434
{
435+
#ifdef BACKEND_MODEM
435436
char* p = strchr(oric->aciabackendname, ':');
436437
oric->aciabackendcfg = oric->aciabackend = ACIA_TYPE_MODEM;
437438
oric->aciabackendcfgport = 0;
@@ -451,10 +452,13 @@ static void load_config( struct start_opts *sto, struct machine *oric )
451452
}
452453
if(oric->aciabackendcfgport <= 0)
453454
oric->aciabackendcfgport = ACIA_TYPE_MODEM_DEFAULT_PORT;
455+
#endif
454456
}
455457
else
456458
{
459+
#ifdef BACKEND_COM
457460
oric->aciabackendcfg = oric->aciabackend = ACIA_TYPE_COM;
461+
#endif
458462
}
459463
continue;
460464
}
@@ -695,6 +699,7 @@ SDL_bool init( struct machine *oric, int argc, char *argv[] )
695699
oric->aciabackendcfg = oric->aciabackend = ACIA_TYPE_LOOPBACK;
696700
else if(!strncasecmp("modem", opt_arg, 5))
697701
{
702+
#ifdef BACKEND_MODEM
698703
char* p = strchr(opt_arg, ':');
699704
oric->aciabackendcfg = oric->aciabackend = ACIA_TYPE_MODEM;
700705
oric->aciabackendcfgport = 0;
@@ -714,11 +719,14 @@ SDL_bool init( struct machine *oric, int argc, char *argv[] )
714719
}
715720
if(oric->aciabackendcfgport <= 0)
716721
oric->aciabackendcfgport = ACIA_TYPE_MODEM_DEFAULT_PORT;
722+
#endif
717723
}
718724
else
719725
{
726+
#ifdef BACKEND_COM
720727
strncpy(oric->aciabackendname, opt_arg, ACIA_BACKEND_NAME_LEN);
721728
oric->aciabackendcfg = oric->aciabackend = ACIA_TYPE_COM;
729+
#endif
722730
}
723731
}
724732

0 commit comments

Comments
 (0)