-$Id: BUILDING,v 1.2 2014/06/27 02:06:02 mmondor Exp $
+$Id: BUILDING,v 1.3 2014/06/29 23:56:13 mmondor Exp $
NetBSD
OSX
===
+Install Xcode from the App Store, as well as the Xcode command line
+utilities. For more information, see:
+http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools
+Alternatively, the xcrun command prefix may be needed to access
+some preinstalled command line utilities.
+
+Install the Brew package manager from http://brew.sh
+
+Install the SDL library dependencies using brew:
+% brew install sdl sdl_gfx sdl_image sdl_mixer sdl_net
+Make sure that the libvorbis+libogg dependencies were also installed
+using the "brew list" command.
+
+Go to the client/ directory, modify src/conf.h as necessary, then
+run "make".
+
+[...]
+
WINDOWS
=======
-/* $Id: screen.c,v 1.3 2014/06/25 11:52:24 mmondor Exp $ */
+/* $Id: screen.c,v 1.4 2014/06/29 23:56:13 mmondor Exp $ */
/*
* Copyright (c) 2006, 2014, Matthew Mondor
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
-#include <unistd.h>
#include <SDL.h>
#include <SDL_gfxPrimitives.h>
if (error_font != NULL) {
font_blit_string(error_font, 32, 32, buf,
0xff, 0x0a, 0x0a, 0xff);
- (void) sleep(3);
+ SDL_Delay(3000);
} else
(void) fprintf(stderr, "%s\n", buf);
exit(EXIT_FAILURE);
-/* $Id: screen.h,v 1.2 2014/06/25 11:52:24 mmondor Exp $ */
+/* $Id: screen.h,v 1.3 2014/06/29 23:56:13 mmondor Exp $ */
/*
* Copyright (c) 2006, Matthew Mondor
+#include <stdint.h>
+
#include <SDL.h>