diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-20 22:11:09 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-04-20 22:11:09 +0000 |
commit | 06195a1e5d1bc504543da231baf90558df168064 (patch) | |
tree | fdc4afaccd40403625a0eafbde495f9e31d0c088 /crawl-ref/source/AppHdr.h | |
parent | 01d472dce8be0fa04ff3a66b5c35bc1dc98a110d (diff) | |
download | crawl-ref-06195a1e5d1bc504543da231baf90558df168064.tar.gz crawl-ref-06195a1e5d1bc504543da231baf90558df168064.zip |
Fixed source to build on Linux. Should still build on Mac OS, but this is
untested. Will probably not build out-of-the-box on other BSDs (we need an
autoconf script to use the right dbm headers). DOS and Windows builds are still
broken pending adding Berkeley DB 1.x sources to the Crawl tree, which I'll
probably do sometime tomorrow.
Renamed descriptions.txt -> descript.txt to fit into DOS filename limits.
The descript.txt -> descript.db conversion is now performed automatically by
Crawl on startup if descript.txt is newer than descript.db (or descript.db does
not exist). descript.db is saved in the save directory which is a convenient
directory that is guaranteed writable by Crawl.
The makedb.pl script is no longer necessary (and is unreliable anyway, because
it's easy to have multiple dbm versions with incompatible db formats and have
the installed Perl link with one while Crawl uses the other, leading to nasty
segfaults).
Some .des file changes (Erik).
Deep elf sorcerers are M_EVIL.
Ghosts get mephitic cloud.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1337 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r-- | crawl-ref/source/AppHdr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h index 42c371f581..097cfb35a4 100644 --- a/crawl-ref/source/AppHdr.h +++ b/crawl-ref/source/AppHdr.h @@ -72,6 +72,8 @@ #define UNIX #define USE_8_COLOUR_TERM_MAP #define COL_TO_REPLACE_DARKGREY BLUE + + #define DB_NDBM #endif // ========================================================================= @@ -399,6 +401,10 @@ # error Must define USE_FILE_LOCKING for DGL_SIMPLE_MESSAGING #endif +#ifndef DB_NDBM +#define DB_DBH +#endif + // Uncomment these if you can't find these functions on your system // #define NEED_USLEEP // #define NEED_SNPRINTF |