Mercurial > projects > ldc
comparison dmd/inifile.c @ 535:f79bbd1d0b27
Add __APPLE__ to most #if linux compile time switches.
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sun, 24 Aug 2008 16:54:06 +0200 |
parents | 297690b5d4a5 |
children | cbd6c8073a32 |
comparison
equal
deleted
inserted
replaced
534:7e2867ed70d9 | 535:f79bbd1d0b27 |
---|---|
77 if (!FileName::exists(filename)) | 77 if (!FileName::exists(filename)) |
78 { | 78 { |
79 filename = FileName::replaceName(argv0, inifile); | 79 filename = FileName::replaceName(argv0, inifile); |
80 if (!FileName::exists(filename)) | 80 if (!FileName::exists(filename)) |
81 { | 81 { |
82 #if linux | 82 #if linux || __APPLE__ |
83 | 83 |
84 #if 0 | 84 #if 0 |
85 #if __GLIBC__ // This fix by Thomas Kuehne | 85 #if __GLIBC__ // This fix by Thomas Kuehne |
86 /* argv0 might be a symbolic link, | 86 /* argv0 might be a symbolic link, |
87 * so try again looking past it to the real path | 87 * so try again looking past it to the real path |