diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-31 22:26:49 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-31 23:49:05 +0900 |
| commit | 02b8017b11b008f83e97820f6fdde68bb7a02b01 (patch) | |
| tree | 686f521086a5481179aac9deb730f90e5f8c22d4 /src/libs/sqlite2/shell.c | |
| parent | be956c7280b32501dc50ff9c97b040feaa018a47 (diff) | |
| download | digikam-02b8017b11b008f83e97820f6fdde68bb7a02b01.tar.gz digikam-02b8017b11b008f83e97820f6fdde68bb7a02b01.zip | |
Remove support for Metrowerks compiler
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/libs/sqlite2/shell.c')
| -rw-r--r-- | src/libs/sqlite2/shell.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/libs/sqlite2/shell.c b/src/libs/sqlite2/shell.c index 89898ab4..2d99603a 100644 --- a/src/libs/sqlite2/shell.c +++ b/src/libs/sqlite2/shell.c @@ -20,22 +20,13 @@ #include "sqlite.h" #include <ctype.h> -#if !defined(_WIN32) && !defined(WIN32) && !defined(__MACOS__) +#if !defined(_WIN32) && !defined(WIN32) # include <signal.h> # include <pwd.h> # include <unistd.h> # include <sys/types.h> #endif -#ifdef __MACOS__ -# include <console.h> -# include <signal.h> -# include <unistd.h> -# include <extras.h> -# include <Files.h> -# include <Folders.h> -#endif - #if defined(HAVE_READLINE) && HAVE_READLINE==1 # include <readline/readline.h> # include <readline/history.h> @@ -1089,7 +1080,7 @@ static void process_input(struct callback_data *p, FILE *in){ static char *find_home_dir(void){ char *home_dir = NULL; -#if !defined(_WIN32) && !defined(WIN32) && !defined(__MACOS__) +#if !defined(_WIN32) && !defined(WIN32) struct passwd *pwent; uid_t uid = getuid(); if( (pwent=getpwuid(uid)) != NULL) { @@ -1097,11 +1088,6 @@ static char *find_home_dir(void){ } #endif -#ifdef __MACOS__ - char home_path[_MAX_PATH+1]; - home_dir = getcwd(home_path, _MAX_PATH); -#endif - if (!home_dir) { home_dir = getenv("HOME"); if (!home_dir) { @@ -1212,10 +1198,6 @@ int main(int argc, char **argv){ int i; extern int sqliteOsFileExists(const char*); -#ifdef __MACOS__ - argc = ccommand(&argv); -#endif - Argv0 = argv[0]; main_init(&data); |
