diff options
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); |