Skip to content

Commit

Permalink
remove need to "brew install ncurses"
Browse files Browse the repository at this point in the history
  • Loading branch information
qaisjp committed Jul 24, 2017
1 parent 371f7b2 commit 74f2975
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Server/core/CCrashHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions Server/core/CServerImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion Server/sdk/MTAPlatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 74f2975

Please sign in to comment.