summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/patches/patch-ah
blob: 110f51cb88264d16b3c11ba013acef8d03dc632f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ah,v 1.5 2004/10/13 02:08:43 tv Exp $

--- src/tools/qdatastream.cpp.orig	Thu Aug  5 10:41:57 2004
+++ src/tools/qdatastream.cpp
@@ -484,6 +484,8 @@ void QDataStream::setByteOrder( int bo )
 
 #if defined(Q_OS_HPUX) && !defined(__LP64__)
 extern "C" long long __strtoll( const char *, char**, int );
+#elif defined(Q_OS_INTERIX)
+extern "C" long long strtoq( const char *, char**, int );
 #endif
 
 static Q_INT64 read_int_ascii( QDataStream *s )
@@ -508,7 +510,7 @@ static Q_INT64 read_int_ascii( QDataStre
     return _atoi64( buf );
 #  elif defined(Q_OS_HPUX)
     return __strtoll( buf, (char**)0, 10 );
-#  elif defined(Q_OS_MACX) && defined(QT_MACOSX_VERSION) && QT_MACOSX_VERSION < 0x1020
+#  elif (defined(Q_OS_MACX) && defined(QT_MACOSX_VERSION) && QT_MACOSX_VERSION < 0x1020) || defined(Q_OS_INTERIX)
     return strtoq( buf, (char**)0, 10 );
 #  else
     return strtoll( buf, (char**)0, 10 );	// C99 function