mirror of
https://github.com/simh/simh.git
synced 2026-02-24 08:03:13 +00:00
Changed all internal #ifdef's which were conditional on __linux to be conditional on either __linux or __linux__. Some platforms (PPC) don't define __linux when gcc is invoked with -std=c99.
This commit is contained in:
@@ -219,7 +219,7 @@ FILE *sim_fopen (const char *file, const char *mode)
|
||||
#if defined (VMS)
|
||||
return fopen (file, mode, "ALQ=32", "DEQ=4096",
|
||||
"MBF=6", "MBC=127", "FOP=cbt,tef", "ROP=rah,wbh", "CTX=stm");
|
||||
#elif defined (USE_INT64) && defined (USE_ADDR64) && defined (__linux)
|
||||
#elif defined (USE_INT64) && defined (USE_ADDR64) && (defined (__linux) || defined (__linux__))
|
||||
return fopen64 (file, mode);
|
||||
#else
|
||||
return fopen (file, mode);
|
||||
@@ -312,7 +312,7 @@ return (t_addr)fileaddr;
|
||||
|
||||
/* Linux */
|
||||
|
||||
#if defined (__linux)
|
||||
#if defined (__linux) || defined (__linux__)
|
||||
#define _SIM_IO_FSEEK_EXT_ 1
|
||||
|
||||
int sim_fseek (FILE *st, t_addr xpos, int origin)
|
||||
|
||||
Reference in New Issue
Block a user