MINIUPNPC_VERSION in miniupnpc.h (updated by make)

This commit is contained in:
Thomas Bernard 2012-01-07 11:35:45 +01:00
parent f567e229d8
commit 368e232179
2 changed files with 10 additions and 2 deletions

View File

@ -129,7 +129,11 @@ clean:
# clean jnaerator stuff # clean jnaerator stuff
$(RM) _jnaerator.* java/miniupnpc_$(OS).jar $(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) -d $(INSTALLDIRINC)
$(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC) $(INSTALL) -m 644 $(HEADERS) $(INSTALLDIRINC)
$(INSTALL) -d $(INSTALLDIRLIB) $(INSTALL) -d $(INSTALLDIRLIB)

View File

@ -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 /* Project: miniupnp
* http://miniupnp.free.fr/ * http://miniupnp.free.fr/
* Author: Thomas Bernard * Author: Thomas Bernard
@ -17,6 +17,10 @@
#define UPNPDISCOVER_SOCKET_ERROR (-101) #define UPNPDISCOVER_SOCKET_ERROR (-101)
#define UPNPDISCOVER_MEMORY_ERROR (-102) #define UPNPDISCOVER_MEMORY_ERROR (-102)
/* versions : */
#define MINIUPNPC_VERSION "1.6"
#define MINIUPNPC_API_VERSION 8
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif