Mercurial > trustbridge
comparison common/portpath.c @ 156:f09a0817e3bc
merged.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 25 Mar 2014 09:23:47 +0100 |
parents | 306e4db11761 |
children | 4a4b5e640d1a 6d64d7e9fa32 |
comparison
equal
deleted
inserted
replaced
155:c0fdb8d336cf | 156:f09a0817e3bc |
---|---|
1 #include "portpath.h" | |
2 | |
3 #include <libgen.h> | |
4 #include <limits.h> | |
5 #include <stdio.h> | |
6 #include <stdlib.h> | |
7 | |
8 | |
9 char * | |
10 port_dirname(char *path) | |
11 { | |
12 #ifndef _WIN32 | |
13 return dirname(path); | |
14 #else | |
15 fprintf(stderr, "Windows Suport missing!"); | |
16 abort(); | |
17 #endif | |
18 | |
19 } | |
20 | |
21 char * | |
22 port_realpath(char *path) | |
23 { | |
24 #ifndef _WIN32 | |
25 return realpath(path, NULL); | |
26 #else | |
27 fprintf(stderr, "Windows Suport missing!"); | |
28 abort(); | |
29 #endif | |
30 } |