forked from e16/e16
1
0
Fork 0

epp: Unifdef __EMX__

Long gone elsewhere.
This commit is contained in:
Kim Woelders 2023-07-28 19:13:59 +02:00
parent 28386ab272
commit e1bfe5ea0d
4 changed files with 0 additions and 21 deletions

View File

@ -28,9 +28,6 @@
#include "cpplib.h"
#include "cpphash.h"
#ifdef __EMX__
#include <strings.h>
#endif
#ifdef MULTIBYTE_CHARS
#include <locale.h>

View File

@ -27,9 +27,6 @@ const char *version_string = "0.0.0";
#include "config.h"
#ifdef __EMX__
#include <strings.h>
#endif
#ifndef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR "/usr/include"
@ -3320,11 +3317,7 @@ do_include(cpp_reader * pfile, struct directive *keyword,
/* If specified file name is absolute, just open it. */
#ifndef __EMX__
if (*fbeg == '/')
#else
if (_fnisabs(fbeg))
#endif
{
strncpy(fname, (const char *)fbeg, flen);
fname[flen] = 0;
@ -5380,11 +5373,7 @@ read_name_map(cpp_reader * pfile, const char *dirname)
if (*dirname)
strcat(name, "/");
strcat(name, FILE_NAME_MAP_FILE);
#ifndef __EMX__
f = fopen(name, "r");
#else
f = fopen(name, "rt");
#endif
if (!f)
map_list_ptr->map_list_map = NULL;
else

View File

@ -636,6 +636,3 @@ void *xmalloc(unsigned size);
void *xrealloc(void *old, unsigned size);
void *xcalloc(unsigned number, unsigned size);
#ifdef __EMX__
#define PATH_SEPARATOR ';'
#endif

View File

@ -44,11 +44,7 @@ main(int argc, char **argv)
int got_text;
p = argv[0] + strlen(argv[0]);
#ifndef __EMX__
while (p != argv[0] && p[-1] != '/')
#else
while (p != argv[0] && p[-1] != '/' && p[-1] != '\\')
#endif
--p;
progname = p;