Mercurial > trustbridge
comparison common/portpath.c @ 162:4a4b5e640d1a
Fix build for windows with -Wunused -Werror
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 25 Mar 2014 10:08:56 +0000 |
parents | 306e4db11761 |
children | 199878f09bf1 |
comparison
equal
deleted
inserted
replaced
161:a4b1c77f3e6a | 162:4a4b5e640d1a |
---|---|
10 port_dirname(char *path) | 10 port_dirname(char *path) |
11 { | 11 { |
12 #ifndef _WIN32 | 12 #ifndef _WIN32 |
13 return dirname(path); | 13 return dirname(path); |
14 #else | 14 #else |
15 if (path){}; | |
15 fprintf(stderr, "Windows Suport missing!"); | 16 fprintf(stderr, "Windows Suport missing!"); |
16 abort(); | 17 abort(); |
17 #endif | 18 #endif |
18 | 19 |
19 } | 20 } |
22 port_realpath(char *path) | 23 port_realpath(char *path) |
23 { | 24 { |
24 #ifndef _WIN32 | 25 #ifndef _WIN32 |
25 return realpath(path, NULL); | 26 return realpath(path, NULL); |
26 #else | 27 #else |
28 if (path){}; | |
27 fprintf(stderr, "Windows Suport missing!"); | 29 fprintf(stderr, "Windows Suport missing!"); |
28 abort(); | 30 abort(); |
29 #endif | 31 #endif |
30 } | 32 } |