summaryrefslogtreecommitdiff
path: root/src/base/path.h
diff options
context:
space:
mode:
authorscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-15 19:57:10 +0000
committerscarab <scarab@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-08-15 19:57:10 +0000
commit7bbd60007620cf3cc3ee7a913f7010588808ebb2 (patch)
tree34e72f66dfd1076e23c43074786f935aca70cba1 /src/base/path.h
parent50ba3d5e1e9f9eeda049a348efa4645af07610bc (diff)
"- initial commit for GETTEXT support and K&R compilance"
git-svn-id: http://opensvn.csie.org/tuxanci_ng@196 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/path.h')
-rw-r--r--src/base/path.h75
1 files changed, 35 insertions, 40 deletions
diff --git a/src/base/path.h b/src/base/path.h
index f547f69..3c44600 100644
--- a/src/base/path.h
+++ b/src/base/path.h
@@ -1,43 +1,38 @@
#ifndef PATH_H
-
-#define PATH_H
-
-#include "main.h"
-
-#ifndef PREFIX
-#ifndef __WIN32__
- #define PREFIX "/usr/local"
-#else
- #define PREFIX ".."
-#endif
-#endif
-
-#ifndef PUBLIC_SERVER
- #define PATH_DIR PREFIX "/share/tuxanci/"
-#ifndef __WIN32__
- #define PATH_MODULES PREFIX "/lib/tuxanci/"
-#else
- #define PATH_MODULES PREFIX "/bin/"
-#endif
-#else
- #define PATH_DIR PREFIX "/share/tuxanci-server/"
-#ifndef __WIN32__
- #define PATH_MODULES PREFIX "/lib/tuxanci-server/"
- #define SERVER_CONFIG "/etc/tuxanci-server/server.conf"
-#else
- #define PATH_MODULES PREFIX "/bin/"
- #define SERVER_CONFIG PREFIX "/etc/tuxanci-server/server.conf"
-#endif
-#endif
-
-#define PATH_IMAGE PATH_DIR "image/"
-#define PATH_FONT PATH_DIR "font/"
-#define PATH_ARENA PATH_DIR "arena/"
-#define PATH_SOUND PATH_DIR "sound/"
-#define PATH_MUSIC PATH_DIR "music/"
-#define PATH_CONFIG PATH_DIR "conf/"
-#define PATH_LANG PATH_DIR "lang/"
-#define PATH_DATA PATH_DIR "doc/"
-
+ #define PATH_H
+ #ifndef PREFIX
+ #ifndef __WIN32__
+ #define PREFIX "/usr/local"
+ #else
+ #define PREFIX ".."
+ #endif
+ #endif
+ #ifndef PUBLIC_SERVER
+ #define PATH_DIR PREFIX "/share/tuxanci/"
+ #ifndef __WIN32__
+ #define PATH_MODULES PREFIX "/lib/tuxanci/"
+ #else
+ #define PATH_MODULES PREFIX "/bin/"
+ #endif
+ #else
+ #define PATH_DIR PREFIX "/share/tuxanci-server/"
+ #ifndef __WIN32__
+ #define PATH_MODULES PREFIX "/lib/tuxanci-server/"
+ #define SERVER_CONFIG "/etc/tuxanci-server/server.conf"
+ #else
+ #define PATH_MODULES PREFIX "/bin/"
+ #define SERVER_CONFIG PREFIX "/etc/tuxanci-server/server.conf"
+ #endif
+ #endif
+ #define PATH_IMAGE PATH_DIR "image/"
+ #define PATH_FONT PATH_DIR "font/"
+ #define PATH_ARENA PATH_DIR "arena/"
+ #define PATH_SOUND PATH_DIR "sound/"
+ #define PATH_MUSIC PATH_DIR "music/"
+ #define PATH_CONFIG PATH_DIR "conf/"
+ #define PATH_LANG PATH_DIR "lang/"
+ #define PATH_DATA PATH_DIR "doc/"
+ #define PATH_LOCALE PREFIX "share/locale/"
+ #include "main.h"
#endif