be more consistent with CROSS_TO_target macro names for cross-compiles

-DCROSS_TO_MSDOS	msdos cross-compile (djgpp cross-compiler)
-DCROSS_TO_AMIGA	Amiga cross-compile
-DCROSS_TO_WASM		wasm cross-compile (emscripten)
This commit is contained in:
nhmall
2020-10-08 13:49:24 -04:00
parent 342323eb15
commit 5dcc328759
16 changed files with 34 additions and 34 deletions

View File

@@ -29,7 +29,7 @@
#endif
/* Prototypes */
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/amiwind.p"
#include "NH:sys/amiga/winami.p"
#include "NH:sys/amiga/amidos.p"

View File

@@ -36,7 +36,7 @@
#include <functions.h>
#endif
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/winami.p"
#include "NH:sys/amiga/amiwind.p"
#include "NH:sys/amiga/amidos.p"

View File

@@ -3,7 +3,7 @@
/* Copyright (c) Kenneth Lorber, Bethesda, Maryland 1993,1996 */
/* NetHack may be freely redistributed. See license for details. */
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/windefs.h"
#include "NH:sys/amiga/winext.h"
#include "NH:sys/amiga/winproto.h"
@@ -26,7 +26,7 @@ static int BufferGetchar(void);
static void ProcessMessage(register struct IntuiMessage *message);
#define BufferQueueChar(ch) (KbdBuffer[KbdBuffered++] = (ch))
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
struct Library *ConsoleDevice;
#else
struct Device *
@@ -36,7 +36,7 @@ struct Device *
ConsoleDevice;
#endif
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/amimenu.c"
#else
#include "amimenu.c"

View File

@@ -3,7 +3,7 @@
*/
/* NetHack may be freely redistributed. See license for details. */
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/windefs.h"
#include "NH:sys/amiga/winext.h"
#include "NH:sys/amiga/winproto.h"

View File

@@ -3,7 +3,7 @@
*/
/* NetHack may be freely redistributed. See license for details. */
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/windefs.h"
#include "NH:sys/amiga/winext.h"
#include "NH:sys/amiga/winproto.h"
@@ -15,7 +15,7 @@
#include "dlb.h"
#ifdef AMIGA_CROSS
#ifdef CROSS_TO_AMIGA
#define strnicmp strncmpi
#endif

View File

@@ -14,14 +14,14 @@
#ifdef TESTING
#include "hack.h"
#else
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:src/tile.c"
#else
#include "../src/tile.c"
#endif
#endif
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:win/share/tile.h"
#include "NH:sys/amiga/windefs.h"
#include "NH:sys/amiga/winext.h"

View File

@@ -3,7 +3,7 @@
*/
/* NetHack may be freely redistributed. See license for details. */
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/windefs.h"
#include "NH:sys/amiga/winext.h"
#include "NH:sys/amiga/winproto.h"
@@ -17,7 +17,7 @@
#include "date.h"
extern struct TagItem scrntags[];
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
extern struct Library *ConsoleDevice;
#else
extern struct Device *
@@ -792,7 +792,7 @@ amii_create_nhwindow(type) register int type;
}
ConsoleDevice =
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
(struct Library *)
#else
(struct Device *

View File

@@ -2,7 +2,7 @@
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
/* NetHack may be freely redistributed. See license for details. */
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/windefs.h"
#include "NH:sys/amiga/winext.h"
#include "NH:sys/amiga/winproto.h"

View File

@@ -2,7 +2,7 @@
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
/* NetHack may be freely redistributed. See license for details. */
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/windefs.h"
#include "NH:sys/amiga/winext.h"
#include "NH:sys/amiga/winproto.h"
@@ -45,7 +45,7 @@ struct NewWindow StrWindow = {
&String, NULL, NULL, NULL, NULL, 5, 5, 0xffff, 0xffff, CUSTOMSCREEN
};
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/colorwin.c"
#else
#include "colorwin.c"
@@ -58,7 +58,7 @@ struct NewWindow StrWindow = {
#define GADOKAY 6
#define GADCANCEL 7
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/clipwin.c"
#else
#include "clipwin.c"

View File

@@ -2,7 +2,7 @@
/* Copyright (c) Gregg Wonderly, Naperville, Illinois, 1991,1992,1993. */
/* NetHack may be freely redistributed. See license for details. */
#ifndef AMIGA_CROSS
#ifndef CROSS_TO_AMIGA
#include "NH:sys/amiga/windefs.h"
#include "NH:sys/amiga/winext.h"
#include "NH:sys/amiga/winproto.h"