From: nishi Date: Fri, 26 Jan 2024 02:09:55 +0000 (+0000) Subject: fixing makefile, and version flag X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f38866a27b7dcc6cf86873e4eb8dd988494699ec;p=libw3.git fixing makefile, and version flag git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@73 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Example/Makefile b/Example/Makefile index 3d9e2a6..a9f42c5 100644 --- a/Example/Makefile +++ b/Example/Makefile @@ -7,5 +7,3 @@ clean: rm -f *.o *.so *.core *~ *.exe *.res - - diff --git a/Example/W3B/w3b.c b/Example/W3B/w3b.c index 578a616..7ab55b1 100644 --- a/Example/W3B/w3b.c +++ b/Example/W3B/w3b.c @@ -4,8 +4,17 @@ * Simple browser */ +#include + #include +#include int main(int argc, char** argv) { - + int i; + for(i = 1; i < argc; i++){ + if(strcmp(argv[i], "--version") == 0){ + printf("LibW3 %s\n", LIBW3_VERSION); + return 0; + } + } }