1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-06 20:49:29 +03:00

GNUmakefile: move HAVE_STRTOLL to libssh2_config.h [ci skip] (#844)

This commit is contained in:
Viktor Szakats
2023-03-13 15:27:10 +01:00
committed by GitHub
parent 0c00d3b955
commit 2215ee37e9
2 changed files with 2 additions and 5 deletions

View File

@@ -49,10 +49,6 @@ endif
CPPFLAGS += -I$(PROOT)/win32 -I$(PROOT)/include
RCFLAGS += -I$(PROOT)/include
# src
CPPFLAGS_LIB := -DHAVE_STRTOLL
# examples, tests
LIBSSH2_LDFLAGS_BIN += -L$(PROOT)/win32
@@ -186,7 +182,7 @@ test: $(TARGETS_EXAMPLES)
$(CC) -W -Wall $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(LIBSSH2_LDFLAGS_BIN) $< -o $@ $(LIBS) $(LIBS_BIN)
$(OBJDIR)/%.o: %.c
$(CC) -W -Wall $(CFLAGS) $(CPPFLAGS) $(CPPFLAGS_LIB) -c $< -o $@
$(CC) -W -Wall $(CFLAGS) $(CPPFLAGS) -c $< -o $@
$(libssh2_dll_LIBRARY) $(libssh2_dll_a_LIBRARY): $(OBJS) $(OBJDIR)/$(TARGET).res
@$(call DEL, $@)

View File

@@ -20,6 +20,7 @@
# define HAVE_INTTYPES_H
# define HAVE_SYS_TIME_H
# define HAVE_GETTIMEOFDAY
# define HAVE_STRTOLL
#elif defined(_MSC_VER)
# if _MSC_VER < 1900
# undef HAVE_SNPRINTF