summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-10-26 18:57:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-26 18:57:00 +0900
commit041887c12f0ea2085a72fef9b9432ef62ff3cacb (patch)
treebf5b0aa030297dbc0a5ef08f4cd0313550166348
parente0657ee7258ea37378c88307ab664c723009bc62 (diff)
downloaddigikam-041887c12f0ea2085a72fef9b9432ef62ff3cacb.tar.gz
digikam-041887c12f0ea2085a72fef9b9432ef62ff3cacb.zip
Drop Borland compiler specific code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--digikam/libs/sqlite2/os.h4
-rw-r--r--digikam/libs/sqlite3/sqlite3.c13
-rw-r--r--digikam/libs/sqlite3/sqlite3.h2
3 files changed, 5 insertions, 14 deletions
diff --git a/digikam/libs/sqlite2/os.h b/digikam/libs/sqlite2/os.h
index d1395841..d11198c9 100644
--- a/digikam/libs/sqlite2/os.h
+++ b/digikam/libs/sqlite2/os.h
@@ -71,7 +71,7 @@
# define OS_MAC 1
# define OS_WIN 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_WIN 1
# define OS_UNIX 0
@@ -127,7 +127,7 @@
HANDLE h; /* Handle for accessing the file */
int locked; /* 0: unlocked, <0: write lock, >0: read lock */
};
-# if defined(_MSC_VER) || defined(__BORLANDC__)
+# if defined(_MSC_VER)
typedef __int64 off_t;
# else
# if !defined(_CYGWIN_TYPES_H)
diff --git a/digikam/libs/sqlite3/sqlite3.c b/digikam/libs/sqlite3/sqlite3.c
index d71872d2..45077b4b 100644
--- a/digikam/libs/sqlite3/sqlite3.c
+++ b/digikam/libs/sqlite3/sqlite3.c
@@ -243,15 +243,6 @@
/************** End of sqliteLimit.h *****************************************/
/************** Continuing where we left off in sqliteInt.h ******************/
-/* Disable nuisance warnings on Borland compilers */
-#if defined(__BORLANDC__)
-#pragma warn -rch /* unreachable code */
-#pragma warn -ccc /* Condition is always true or false */
-#pragma warn -aus /* Assigned value is never used */
-#pragma warn -csu /* Comparing signed and unsigned */
-#pragma warn -spa /* Suspicous pointer arithmetic */
-#endif
-
/* Needed for various definitions... */
#define _GNU_SOURCE
@@ -597,7 +588,7 @@ typedef struct sqlite3 sqlite3;
#ifdef SQLITE_INT64_TYPE
typedef SQLITE_INT64_TYPE sqlite_int64;
typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
-#elif defined(_MSC_VER) || defined(__BORLANDC__)
+#elif defined(_MSC_VER)
typedef __int64 sqlite_int64;
typedef unsigned __int64 sqlite_uint64;
#else
@@ -7348,7 +7339,7 @@ void enable_simulated_io_errors(void);
#if !defined(OS_UNIX) && !defined(OS_OTHER)
# define OS_OTHER 0
# 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_UNIX 0
# define OS_OS2 0
diff --git a/digikam/libs/sqlite3/sqlite3.h b/digikam/libs/sqlite3/sqlite3.h
index a492b6d2..57837cbb 100644
--- a/digikam/libs/sqlite3/sqlite3.h
+++ b/digikam/libs/sqlite3/sqlite3.h
@@ -191,7 +191,7 @@ typedef struct sqlite3 sqlite3;
#ifdef SQLITE_INT64_TYPE
typedef SQLITE_INT64_TYPE sqlite_int64;
typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
-#elif defined(_MSC_VER) || defined(__BORLANDC__)
+#elif defined(_MSC_VER)
typedef __int64 sqlite_int64;
typedef unsigned __int64 sqlite_uint64;
#else