git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3995
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
WX_ALL_INSTALLED=
if test "$wxUSE_SHARED" = "yes"; then
WX_ALL_INSTALLED=
if test "$wxUSE_SHARED" = "yes"; then
- dnl set target to shared
- WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
-
case "${host}" in
*-hp-hpux* )
case "${host}" in
*-hp-hpux* )
+ if test "$GCC" = yes ; then
+ SHARED_LD="${CC} -shared -o"
+ PIC_FLAG="-fPIC"
+ else
+ SHARED_LD="${CXX} -b -o"
+ PIC_FLAG="+Z"
+ fi
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl"
- SHARED_LD="${CXX} -b -o"
- PIC_FLAG="+Z"
WX_ALL=${WX_LIBRARY_NAME_SHARED}
;;
*-*-linux* )
WX_ALL=${WX_LIBRARY_NAME_SHARED}
;;
*-*-linux* )
AC_MSG_ERROR(unknown system type ${host}.)
esac
AC_MSG_ERROR(unknown system type ${host}.)
esac
+ dnl set target to shared
+ WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
else
dnl set target to static
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
else
dnl set target to static
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/utils.h"
#include "wx/intl.h"
-#include "wx/ioswrap.h"
-
-#if wxUSE_IOSTREAMH && wxUSE_STD_IOSTREAM
- #include <iomanip.h>
-#else
- #include <iomanip>
+#if wxUSE_STD_IOSTREAM
+ #include "wx/ioswrap.h"
+ #if wxUSE_IOSTREAMH
+ #include <iomanip.h>
+ #else
+ #include <iomanip>
+ #endif
#endif
#include <string.h>
#endif
#include <string.h>
-#if wxUSE_IOSTREAMH && wxUSE_STD_IOSTREAM
-# include <fstream.h>
-#else
-# include <fstream>
+#if wxUSE_STD_IOSTREAM
+ #if wxUSE_IOSTREAMH
+ #include <fstream.h>
+ #else
+ #include <fstream>
+ #endif
long dx = x1 - xc;
long dy = y1 - yc;
long dx = x1 - xc;
long dy = y1 - yc;
- long radius = (long) sqrt(dx*dx+dy*dy);
+ long radius = (long) sqrt( (double)(dx*dx+dy*dy) );
double alpha1, alpha2;
if (x1 == x2 && y1 == y2)
double alpha1, alpha2;
if (x1 == x2 && y1 == y2)
/* we have these definitions from configure */
#if defined(HAVE_DLOPEN)
#define DLDAPI_SVR4_DLFCN
/* we have these definitions from configure */
#if defined(HAVE_DLOPEN)
#define DLDAPI_SVR4_DLFCN
-#elif define(HAVE_SHL_LOAD)
+#elif defined(HAVE_SHL_LOAD)
#define DLDAPI_HP_SHL
#endif
#define DLDAPI_HP_SHL
#endif