2008-08-11 15:58 UTC+0200 Viktor Szakats (harbour.01 syenar hu)
* config/sunos/gcc.cf
! Fixed to include required system libs for hbinet.c.
- Removed HB_OS_SUNOS command-line macro. Now relying on
autodetection.
* include/hbsetup.h
* Extended autodetection for HB_OS_SUNOS.
* source/vm/itemapi.c
! Fixed to check for HB_OS_SUNOS macro after
including Harbour headers.
This commit is contained in:
@@ -14,7 +14,7 @@ CC_IN = -c
|
||||
CC_OUT = -o
|
||||
CPPFLAGS = -I. -I$(HB_INC_COMPILE)
|
||||
|
||||
CFLAGS = -DHB_OS_SUNOS -Wall -W
|
||||
CFLAGS = -Wall -W
|
||||
|
||||
# uncomment this if you want to farce relocateable code for .so libs
|
||||
# it's necessary on some platforms but can reduce performance
|
||||
@@ -77,7 +77,7 @@ ifneq ($(findstring -DHB_EXT_ZLIB, $(C_USR)),)
|
||||
LINKLIBS += -lz
|
||||
endif
|
||||
|
||||
LINKLIBS += -lm -lrt
|
||||
LINKLIBS += -lm -lrt -lsocket -lnsl -lresolv
|
||||
|
||||
LDFLAGS = $(LINKPATHS)
|
||||
|
||||
|
||||
@@ -301,7 +301,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef HB_OS_SUNOS
|
||||
#if defined(sun) || defined(__sun)
|
||||
#if defined(sun) || defined(__sun) || defined(__sun__)
|
||||
#define HB_OS_SUNOS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -85,13 +85,10 @@
|
||||
*/
|
||||
|
||||
#if !defined(__DJGPP__)
|
||||
#include <math.h> /* For log() */
|
||||
# include <math.h> /* For log() */
|
||||
#endif
|
||||
#if defined(_MSC_VER) || defined(__IBMCPP__) || (__BORLANDC__ > 1040) || defined(__WATCOMC__) /* Use this only above Borland C++ 3.1 */
|
||||
#include <float.h> /* for _finite() and _isnan() */
|
||||
#endif
|
||||
#if defined(HB_OS_SUNOS)
|
||||
# include <ieeefp.h>
|
||||
# include <float.h> /* for _finite() and _isnan() */
|
||||
#endif
|
||||
|
||||
#include "hbvmopt.h"
|
||||
@@ -107,6 +104,10 @@
|
||||
#include "hbmath.h"
|
||||
#include "hbapicdp.h"
|
||||
|
||||
#if defined(HB_OS_SUNOS)
|
||||
# include <ieeefp.h>
|
||||
#endif
|
||||
|
||||
HB_EXPORT PHB_ITEM hb_itemNew( PHB_ITEM pNull )
|
||||
{
|
||||
HB_TRACE(HB_TR_DEBUG, ("hb_itemNew(%p)", pNull));
|
||||
|
||||
Reference in New Issue
Block a user