summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/patches/patch-ah
blob: db4fa6a83bdae193d34e80281f06c09a5b912353 (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.6 2005/02/10 13:21:20 adam Exp $

--- src/tools/qdatastream.cpp.orig	2005-01-21 17:16:04.000000000 +0000
+++ src/tools/qdatastream.cpp
@@ -486,6 +486,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 )
@@ -510,7 +512,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