From f38866a27b7dcc6cf86873e4eb8dd988494699ec Mon Sep 17 00:00:00 2001 From: nishi Date: Fri, 26 Jan 2024 02:09:55 +0000 Subject: [PATCH] fixing makefile, and version flag git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@73 d27a3e52-49c5-7645-884c-6793ebffc270 --- Example/Makefile | 2 -- Example/W3B/w3b.c | 11 ++++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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; + } + } } -- 2.43.0