From 368e232179fcb3e222e6c9369fcd8af27aa69be3 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 7 Jan 2012 11:35:45 +0100 Subject: [PATCH] MINIUPNPC_VERSION in miniupnpc.h (updated by make) --- miniupnpc/Makefile | 6 +++++- miniupnpc/miniupnpc.h | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/miniupnpc/Makefile b/miniupnpc/Makefile index dc1e538..a53ff89 100644 --- a/miniupnpc/Makefile +++ b/miniupnpc/Makefile @@ -129,7 +129,11 @@ clean: # clean jnaerator stuff $(RM) _jnaerator.* java/miniupnpc_$(OS).jar -install: $(FILESTOINSTALL) +updateversion: miniupnpc.h + cp miniupnpc.h miniupnpc.h.bak + sed 's/\(.*MINIUPNPC_API_VERSION\s\+\)[0-9]\+/\1$(APIVERSION)/' < miniupnpc.h.bak > miniupnpc.h + +install: updateversion $(FILESTOINSTALL) $(INSTALL) -d $(INSTALLDIRINC) $(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC) $(INSTALL) -d $(INSTALLDIRLIB) diff --git a/miniupnpc/miniupnpc.h b/miniupnpc/miniupnpc.h index c8211e8..6a7eb56 100644 --- a/miniupnpc/miniupnpc.h +++ b/miniupnpc/miniupnpc.h @@ -1,4 +1,4 @@ -/* $Id: miniupnpc.h,v 1.24 2011/09/12 09:52:02 nanard Exp $ */ +/* $Id: miniupnpc.h,v 1.25 2011/10/09 16:17:29 nanard Exp $ */ /* Project: miniupnp * http://miniupnp.free.fr/ * Author: Thomas Bernard @@ -17,6 +17,10 @@ #define UPNPDISCOVER_SOCKET_ERROR (-101) #define UPNPDISCOVER_MEMORY_ERROR (-102) +/* versions : */ +#define MINIUPNPC_VERSION "1.6" +#define MINIUPNPC_API_VERSION 8 + #ifdef __cplusplus extern "C" { #endif