Permalink
Browse files

remove need to "brew install ncurses"

  • Loading branch information...
qaisjp committed Jul 4, 2017
1 parent 371f7b2 commit 74f2975f67c69cda802d09ed2769e85f2e67c98d
Showing with 13 additions and 4 deletions.
  1. +3 −1 Server/core/CCrashHandler.cpp
  2. +4 −2 Server/core/CServerImpl.h
  3. +6 −1 Server/sdk/MTAPlatform.h
@@ -18,17 +18,19 @@
#endif
#ifndef WIN32
#include <ncursesw/curses.h>
extern "C" WINDOW* m_wndMenu;
extern "C" WINDOW* m_wndInput;
extern "C" bool g_bNoCurses;
#ifdef __APPLE__
#include <curses.h>
#include <client/mac/handler/exception_handler.h>
// From https://archive.fo/DJvyQ
bool DumpCallback(const char* _dump_dir, const char* _minidump_id, void *context, bool succeeded );
#else
#include <ncursesw/curses.h>
#include <client/linux/handler/exception_handler.h>
bool DumpCallback( const google_breakpad::MinidumpDescriptor& descriptor, void* context, bool succeeded );
#endif
static SString ms_strDumpPathFilename;
@@ -30,8 +30,10 @@ class CServerImpl;
#include <xml/CXML.h>
#include "CThreadCommandQueue.h"
#ifndef WIN32
#include <ncursesw/curses.h>
#if defined(__APPLE__)
#include <curses.h>
#elif !defined(WIN32)
#include <ncursesw/curses.h>
#endif
#define SERVER_RESET_RETURN 500
View
@@ -74,10 +74,15 @@ extern "C" bool g_bNoTopBar;
#include <string.h>
#include <string>
#include <fcntl.h>
#include <ncursesw/curses.h>
#include <dlfcn.h>
#include <sys/time.h>
#include <sys/times.h>
#if defined(__APPLE__)
#include <curses.h>
#else
#include <ncursesw/curses.h>
#endif
#define MAX_PATH 255

0 comments on commit 74f2975

Please sign in to comment.