#ifndef PORT_H
#define PORT_H

#include <cstdio>
#include <ctype.h>
#include <sys/types.h>
#include <cmath>
#include <csignal>

/** MM: zbytocnost */
#ifndef NULL
#define NULL 0
#endif /* NULL */

/** MM: random a srandom nahradene za rand a srand */
#include <cstdlib>

#include <cstring>

#ifdef lint
#undef putc			/* correct lint '_flsbuf' bug */
#endif /* lint */


#include <cassert>

#include <climits>

/** MM: pridane kvoli kompatibilite bezpecnych funkcii medzi GCC a MS_Compiler */
#if defined(WIN32) && !defined(__GNUC__)
#ifndef sscanf
#define sscanf sscanf_s
#endif //sscanf
#ifndef fscanf
#define fscanf fscanf_s
#endif //fscanf
#ifndef snprintf
#define snprintf sprintf_s
#endif //snprintf
#ifndef strncpy
#define strncpy(dest, source, num) strcpy_s(dest, num, source)
#endif //strncpy
#endif // koniec WIN32

#endif /* PORT_H */

