Mercurial > hg > nnchat
changeset 139:c39399725f7b
Define some platform-specific constants.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Nov 2010 21:47:07 +0200 |
parents | 3e221c16b087 |
children | 2d2ef5bbcc11 |
files | nnchat.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Tue Nov 02 21:46:16 2010 +0200 +++ b/nnchat.c Tue Nov 02 21:47:07 2010 +0200 @@ -17,6 +17,13 @@ #endif #include <curses.h> +#ifdef __WIN32 +#define SET_CONFIG_FILE "nnchat-config.txt" +#define SET_DIR_SEPARATOR "\\" +#else +#define SET_CONFIG_FILE ".nnchat" +#define SET_DIR_SEPARATOR "/" +#endif #define SET_MAX_BACKBUF (1024) #define SET_MAX_HISTORY (16)