Generify source code
Previously we would fail in some parts of the code if we did not have a premade configuration, now we use any code that was marked as Linux, BSD and Solaris as our basis in order to support building unknown Unix systems.
This commit is contained in:
@@ -29,12 +29,8 @@
|
||||
#ifndef TT_CXX_H
|
||||
#define TT_CXX_H
|
||||
|
||||
#if defined(__linux__) || defined(CSRG_BASED) || defined(sun)
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
#else
|
||||
#include <iostream.h>
|
||||
#endif
|
||||
|
||||
#include <Tt/tt_c.h>
|
||||
|
||||
|
||||
@@ -190,12 +190,10 @@ signalHandler(
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(SVR4) || defined(aix) || defined(__linux__) || defined(CSRG_BASED)
|
||||
#if !defined(SIG_PF)
|
||||
typedef void (*sig_pf_t)(int);
|
||||
#define SIG_PF sig_pf_t
|
||||
#endif
|
||||
#endif
|
||||
|
||||
int
|
||||
_tt_sigset(
|
||||
|
||||
Reference in New Issue
Block a user