// ACME - a crossassembler for producing 6502/65c02/65816/65ce02 code. // Copyright (C) 1998-2025 Marco Baye // Have a look at "acme.c" for further info // // Platform specific stuff #include "config.h" // for "boolean" // Amiga #ifdef _AMIGA #define PLATFORM_VERSION "Ported to AmigaOS by Christoph Mammitzsch." #include "_amiga.h" #endif // DOS, OS/2 and Windows #if defined(__DJGPP__) || defined(__OS2__) || defined(__Windows__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(__MINGW32__) || defined(__MINGW64__) #define PLATFORM_VERSION "DOS/OS2/Win32/Win64 version. Compiled by Dirk Hoepfner" #include "_dos.h" #endif // RISC OS #ifdef __riscos__ #define PLATFORM_VERSION "RISC OS version." #include "_riscos.h" #endif // add further platform files here // Unix/Linux/others (also works on newer versions of Windows) #ifndef PLATFORM_VERSION #define PLATFORM_VERSION "Platform independent version." #include "_std.h" #endif // convert UNIX-style path name to local platform style path name and decide // whether path is absolute or relative. p points to the terminated input // string, to be overwritten with the terminated output string. // there is enough space allocated for the output string to be _one_(1!) byte // longer than the input string! extern void platform_convert_path(boolean *is_absolute, char *p); // set or change library path extern void platform_set_lib_path(const char new_path[]); // stuff shared by some, but not all platforms: #if PLATFORM_USE_ENV_VAR // function to setup pointer to library tree from env var extern void platform_read_env_var(void); #endif