Mercurial > hg > nnchat
diff nnchat.c @ 139:c39399725f7b
Define some platform-specific constants.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 02 Nov 2010 21:47:07 +0200 |
parents | fad8c31e41e6 |
children | 2d2ef5bbcc11 |
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)