Use POSIX macros for linux

This commit is contained in:
chase
2018-05-24 16:24:41 -05:00
committed by Jon Trulson
parent 164e695cd0
commit 4f5e7fe5e3
265 changed files with 394 additions and 394 deletions

View File

@@ -65,7 +65,7 @@
#define BRWS_DASH_WIDTH 3
#define BRWS_NUM_DASHES 3
#if !defined(linux)
#if !defined(__linux__)
/*
* Somehow the compiler is not picking up strdup()
* from string.h properly...

View File

@@ -64,7 +64,7 @@
#include "abmf.h"
/* glibc considers CLK_TCK obsolete */
#if defined(linux) && !defined(CLK_TCK)
#if defined(__linux__) && !defined(CLK_TCK)
#define CLK_TCK CLOCKS_PER_SEC
#endif

View File

@@ -279,7 +279,7 @@ printf_setval(GenCodeInfo genCodeInfo, ABObj obj, ...)
{
int return_value = 0;
File codeFile = genCodeInfo->code_file;
#if defined(linux) || defined(CSRG_BASED)
#if defined(__linux__) || defined(CSRG_BASED)
/* Define va_list in <va_list.h> as structure of char ** and int
* Sun define va_list as void * */
va_list paramList = { 0, 0 };

View File

@@ -350,7 +350,7 @@ write_func_def_params(
va_list va_params
)
{
#if defined(__ppc) || defined(linux)
#if defined(__ppc) || defined(__linux__)
#define va_start_params() __va_copy(params, va_params)
#elif defined(CSRG_BASED)
#define va_start_params() va_copy(params, va_params)

View File

@@ -66,7 +66,7 @@
extern "C" {
#endif
#if !defined(linux)
#if !defined(__linux__)
extern char *strdup(const char *);
#endif