Merge mac into windows

This commit is contained in:
2017-08-27 23:37:37 -04:00
228 changed files with 3446 additions and 3423 deletions

28
src/utility.hpp Normal file
View File

@@ -0,0 +1,28 @@
//
// utility.hpp
// BoE
//
// Created by Celtic Minstrel on 17-04-14.
//
//
#ifndef BoE_UTILITY_HPP
#define BoE_UTILITY_HPP
#include <string>
#include <functional>
#include "location.hpp"
short can_see(location p1,location p2,std::function<short(short,short)> get_obscurity);
std::string get_str(std::string list, short j);
// Case-insensitive string comparison seems to be semi-standard, but with different names.
#if defined(__APPLE__)
#define strnicmp strncasecmp
#elif defined(_WIN32)
#define strnicmp _strnicmp
#else
#error Missing strnicmp / strncasecmp
#endif
#endif