Drop Borland compiler specific code

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/82/head
Michele Calgaro 1 month ago
parent c31f090607
commit dbc953c5a7
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -74,7 +74,6 @@
<tr BGCOLOR="#CCCCFF"> <tr BGCOLOR="#CCCCFF">
<td VALIGN=TOP><b><font size="+1">Links</font></b></td> <td VALIGN=TOP><b><font size="+1">Links</font></b></td>
<td> <td>
<a href="http://community.borland.com/article/0,1410,15838,00.html">http://community.borland.com/article/0,1410,15838,00.html</a><br>
<a href="http://www.apptools.com/dbase/faq/qformt.htm">dBASE DBF file format</a><br> <a href="http://www.apptools.com/dbase/faq/qformt.htm">dBASE DBF file format</a><br>
<a href="http://www.geocities.com/SiliconValley/Pines/2563/xbase.htm">XBase <a href="http://www.geocities.com/SiliconValley/Pines/2563/xbase.htm">XBase
file format description</a><br> file format description</a><br>

@ -2990,7 +2990,7 @@ void KDChartAxesPainter::calculateLabelTexts(
nHigh = log10( TQABS( nHigh ) ); nHigh = log10( TQABS( nHigh ) );
//tqDebug("[L-0] nLow: %f, nHigh: %f", nLow, nHigh ); //tqDebug("[L-0] nLow: %f, nHigh: %f", nLow, nHigh );
double intPart=0.0; // initialization necessary for Borland C++ double intPart;
double fractPart = modf( nLow, &intPart ); double fractPart = modf( nLow, &intPart );
//tqDebug(" intPart: %f\nfractPart: %f", intPart, fractPart ); //tqDebug(" intPart: %f\nfractPart: %f", intPart, fractPart );
if( 0.0 > nLow && 0.0 != fractPart ) if( 0.0 > nLow && 0.0 != fractPart )

@ -703,7 +703,7 @@ public slots:
static int roundVal( double d ) static int roundVal( double d )
{ {
double fr; double fr;
double i=0.0; // initialization necessary for Borland C++ double i;
fr = modf( d, &i ); fr = modf( d, &i );
int ret = static_cast < int > ( i ); int ret = static_cast < int > ( i );
if( 0.49999 <= fabs( fr ) ) if( 0.49999 <= fabs( fr ) )

@ -71,7 +71,7 @@
# define OS_MAC 1 # define OS_MAC 1
# define OS_WIN 0 # define OS_WIN 0
# define OS_UNIX 0 # define OS_UNIX 0
# elif defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__) # elif defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
# define OS_MAC 0 # define OS_MAC 0
# define OS_WIN 1 # define OS_WIN 1
# define OS_UNIX 0 # define OS_UNIX 0
@ -127,7 +127,7 @@
HANDLE h; /* Handle for accessing the file */ HANDLE h; /* Handle for accessing the file */
int locked; /* 0: unlocked, <0: write lock, >0: read lock */ int locked; /* 0: unlocked, <0: write lock, >0: read lock */
}; };
# if defined(_MSC_VER) || defined(__BORLANDC__) # if defined(_MSC_VER)
typedef __int64 off_t; typedef __int64 off_t;
# else # else
# if !defined(_CYGWIN_TYPES_H) # if !defined(_CYGWIN_TYPES_H)

@ -26,7 +26,7 @@
#if !defined(OS_UNIX) && !defined(OS_TEST) && !defined(OS_OTHER) #if !defined(OS_UNIX) && !defined(OS_TEST) && !defined(OS_OTHER)
# define OS_OTHER 0 # define OS_OTHER 0
# ifndef OS_WIN # ifndef OS_WIN
# if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__BORLANDC__) # if defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
# define OS_WIN 1 # define OS_WIN 1
# define OS_UNIX 0 # define OS_UNIX 0
# else # else

@ -78,7 +78,7 @@ typedef struct sqlite3 sqlite3;
** to do a typedef that for 64-bit integers that depends on what compiler ** to do a typedef that for 64-bit integers that depends on what compiler
** is being used. ** is being used.
*/ */
#if defined(_MSC_VER) || defined(__BORLANDC__) #if defined(_MSC_VER)
typedef __int64 sqlite_int64; typedef __int64 sqlite_int64;
typedef unsigned __int64 sqlite_uint64; typedef unsigned __int64 sqlite_uint64;
#else #else

@ -167,7 +167,7 @@
** cc '-DUINTPTR_TYPE=long long int' ... ** cc '-DUINTPTR_TYPE=long long int' ...
*/ */
#ifndef UINT64_TYPE #ifndef UINT64_TYPE
# if defined(_MSC_VER) || defined(__BORLANDC__) # if defined(_MSC_VER)
# define UINT64_TYPE unsigned __int64 # define UINT64_TYPE unsigned __int64
# else # else
# define UINT64_TYPE unsigned long long int # define UINT64_TYPE unsigned long long int

@ -43,15 +43,6 @@
#endif /* __STDC__ */ #endif /* __STDC__ */
#endif /* ! __cplusplus */ #endif /* ! __cplusplus */
#ifdef __TURBOC__
#pragma warn -rch
#pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif
#ifdef YY_USE_CONST #ifdef YY_USE_CONST
#define yyconst const #define yyconst const
#else #else

@ -50,9 +50,6 @@ extern "C" {
# define SWIGEXPORT(a) __declspec(dllexport) a # define SWIGEXPORT(a) __declspec(dllexport) a
# endif # endif
# else # else
# if defined(__BORLANDC__)
# define SWIGEXPORT(a) a _export
# else
# define SWIGEXPORT(a) a # define SWIGEXPORT(a) a
# endif # endif
#endif #endif

Loading…
Cancel
Save