diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-30 18:02:54 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-11-30 18:02:54 +0000 |
commit | 0b3a25080b95770f5447a0dbde4625d122b31fb3 (patch) | |
tree | c501015d8b6c3148339c16d4e447ab4b1408220d /src/common/utils.h | |
parent | 80907412c396e576da0a7fbdc3c6babbb2c16c02 (diff) | |
download | hercules-0b3a25080b95770f5447a0dbde4625d122b31fb3.tar.gz hercules-0b3a25080b95770f5447a0dbde4625d122b31fb3.tar.bz2 hercules-0b3a25080b95770f5447a0dbde4625d122b31fb3.tar.xz hercules-0b3a25080b95770f5447a0dbde4625d122b31fb3.zip |
* Moved function 'exists' (file presense check) to utils.c, so that it is available to code outside of lock.c
- Fixed associated F_OK and R_OK defines causing 'already defined' warnings on MinGW (since r1361).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14528 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/utils.h')
-rw-r--r-- | src/common/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/utils.h b/src/common/utils.h index 93563dc34..5cf3ff3cf 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -14,6 +14,7 @@ void dump(FILE* fp, const unsigned char* buffer, int length); void findfile(const char *p, const char *pat, void (func)(const char*)); +bool exists(const char* filename); //Caps values to min/max #define cap_value(a, min, max) ((a >= max) ? max : (a <= min) ? min : a) |