2017-01-10 16:31:05 +01:00
|
|
|
#pragma once
|
2010-08-08 10:06:34 +02:00
|
|
|
|
2017-03-25 18:36:27 +01:00
|
|
|
#ifndef _LP64
|
2017-03-25 18:35:00 +01:00
|
|
|
#define _LP64 0 /* fix a warning in pdcurses 3.4 */
|
2017-03-25 18:36:27 +01:00
|
|
|
#endif
|
2017-03-25 18:35:00 +01:00
|
|
|
|
2017-01-10 18:07:36 +01:00
|
|
|
#ifdef _MSC_VER
|
2017-12-29 11:44:14 +01:00
|
|
|
|
|
|
|
/* @see https://developercommunity.visualstudio.com/content/problem/69874/warning-c4001-in-standard-library-stringh-header.html */
|
2017-05-21 13:09:54 +02:00
|
|
|
#if _MSC_VER >= 1900
|
2017-12-29 06:13:28 +01:00
|
|
|
#pragma warning(disable: 4710 4820 4001)
|
2017-01-10 18:07:36 +01:00
|
|
|
#pragma warning(disable: 4100) // unreferenced formal parameter
|
|
|
|
#pragma warning(disable: 4456) // declaration hides previous
|
|
|
|
#pragma warning(disable: 4457) // declaration hides function parameter
|
|
|
|
#pragma warning(disable: 4459) // declaration hides global
|
2017-12-29 06:13:28 +01:00
|
|
|
#pragma warning(disable: 4224) // formal parameter was previously defined as a type
|
2018-09-26 19:05:49 +02:00
|
|
|
#pragma warning(disable: 4214) // bit field types other than int
|
2017-05-21 13:09:54 +02:00
|
|
|
#endif
|
2017-12-29 11:44:14 +01:00
|
|
|
|
|
|
|
/* @see https://insanecoding.blogspot.no/2007/11/pathmax-simply-isnt.html */
|
|
|
|
#define PATH_MAX 260
|
|
|
|
|
2017-01-10 18:07:36 +01:00
|
|
|
#endif
|
2017-01-10 18:05:48 +01:00
|
|
|
|
2017-01-10 16:31:05 +01:00
|
|
|
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|