Use POSIX macros for linux
This commit is contained in:
@@ -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...
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(__linux__)
|
||||
extern char *strdup(const char *);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user