From 7b2204d69f21d7075e4666ee032d7a129081bc4b Mon Sep 17 00:00:00 2001 From: nlanza Date: Wed, 3 Aug 2005 05:55:39 +0000 Subject: Further build cleanup. The build system used 'LINUX' as a shorthand for Unix-like systems, which ends up being a horrible mess -- it's pretty counterintuitive to have the Solaris/Irix/BSD setups #defining LINUX to make things work. This replaces the use of 'LINUX' with a more-general and more-obvious 'UNIX', and moves the not-really-linux-at-all 'liblinux' to 'libunix'. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6 c06c8d41-db1a-0410-9941-cceddc491573 --- trunk/source/view.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'trunk/source/view.cc') diff --git a/trunk/source/view.cc b/trunk/source/view.cc index 0e2fccd58e..8eea17e6a9 100644 --- a/trunk/source/view.cc +++ b/trunk/source/view.cc @@ -3,6 +3,8 @@ * Summary: Misc function used to render the dungeon. * Written by: Linley Henzell * + * Modified for Crawl Reference by $Author$ on $Date$ + * * Change History (most recent first): * * <10> 29 Jul 00 JDJ show_map iterates horizontally to 79 instead of 80. @@ -88,7 +90,7 @@ void monster_grid(bool do_updates); //--------------------------------------------------------------- int get_number_of_lines(void) { -#ifdef LINUX +#ifdef UNIX return (get_number_of_lines_from_curses()); #elif MAC return (MAC_NUMBER_OF_LINES); @@ -1892,7 +1894,7 @@ void show_map( FixedVector &spec_place ) if (spec_place[0] == 0 && getty != 0 && getty != '+' && getty != '-' && getty != 'h' && getty != 'j' && getty != 'k' && getty != 'l' && getty != 'y' && getty != 'u' && getty != 'b' && getty != 'n' -#ifdef LINUX +#ifdef UNIX && getty != 'H' && getty != 'J' && getty != 'K' && getty != 'L' && getty != 'Y' && getty != 'U' && getty != 'B' && getty != 'N' #endif @@ -1904,7 +1906,7 @@ void show_map( FixedVector &spec_place ) if (spec_place[0] == 1 && getty != 0 && getty != '+' && getty != '-' && getty != 'h' && getty != 'j' && getty != 'k' && getty != 'l' && getty != 'y' && getty != 'u' && getty != 'b' && getty != 'n' -#ifdef LINUX +#ifdef UNIX && getty != 'H' && getty != 'J' && getty != 'K' && getty != 'L' && getty != 'Y' && getty != 'U' && getty != 'B' && getty != 'N' #endif @@ -1966,7 +1968,7 @@ void show_map( FixedVector &spec_place ) move_y = 0; break; -#ifndef LINUX +#ifndef UNIX // This is old DOS keypad support case 'H': move_y = -1; -- cgit v1.2.3-54-g00ecf