From 91d21e604c46efa807b24bf121cc4b0c0c3b6387 Mon Sep 17 00:00:00 2001 From: etanol Date: Wed, 10 Sep 2008 19:09:58 +0200 Subject: [PATCH] Removed command line macro definitions for Hasefroch. It is preferable to code them directly so direct compilation from the command line requires less arguments. --- Makefile | 5 +++-- uftps.h | 9 +++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c5e8c45..bf305bd 100644 --- a/Makefile +++ b/Makefile @@ -6,12 +6,13 @@ RETR ?= generic -CC ?= gcc -HCC := i586-mingw32msvc-gcc -D__MSVCRT_VERSION__=0x0601 +HCC := i586-mingw32msvc-gcc CFLAGS := -O2 -Wall -pipe -fomit-frame-pointer CFLAGS_DBG := -O0 -Wall -pipe -g -pg -DDEBUG LDFLAGS := -Wall -pipe -Wl,-s,-O1 LDFLAGS_DBG := -Wall -pipe -g -pg +#LDFLAGS := -lsocket -lnsl +#LDFLAGS_DBG := -lsocket -lnsl -g -pg SOURCES := change_dir.c command_loop.c enable_passive.c expand_arg.c \ file_stats.c init_session.c list_dir.c log.c next_command.c \ diff --git a/uftps.h b/uftps.h index ba9f42a..dd5a15d 100644 --- a/uftps.h +++ b/uftps.h @@ -25,11 +25,16 @@ #define _LARGEFILE64_SOURCE /* - * Early multiplaform support (more details on hase.h). + * Hasefroch requirements. No need to inclose within "#ifdef" as no other + * system cares about these definitions. */ -#define WINVER 0x0501 +#define WINVER 0x0501 +#define __MSVCRT_VERSION__ 0x0601 #define _NO_OLDNAMES +/* + * Early multiplaform support (more details on hase.h). + */ #include #ifdef __MINGW32__ # include -- 2.11.4.GIT