File:  [HATARI the Atari ST Emulator] / hatari / src / includes / vs-fix.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 9 08:56:55 2019 UTC (7 years, 1 month ago) by root
Branches: hatari, MAIN
CVS tags: hatari02210, hatari02200, hatari02100, hatari02000, HEAD
hatari 2.0.0

/*
 * Hatari - Fix compilation with Visual Studio
 *
 * This file is distributed under the GNU General Public License, version 2
 * or at your option any later version. Read the file gpl.txt for details.
 */
#ifndef VS_FIX_H
#define VS_FIX_H

// Stop Visual Studio complaining
#define _CRT_SECURE_NO_WARNINGS	/* Insecure strcpy etc. */
#pragma warning (disable:4018)	/* signed / unsigned mismatch */
#pragma warning (disable:4049)	/* compiler limit, end of line numbering */
#pragma warning (disable:4101)	/* unreferenced local variable */
#pragma warning (disable:4102)	/* ignore unused label warning */
#pragma warning (disable:4146)	/* unary minus operator applied to unsigned type */
#pragma warning (disable:4244)	/* conversion with potential data loss */
#pragma warning (disable:4761)	/* integral size mismatch in argument */
#pragma warning (disable:4800)	/* Performance Warning on Conversion of bool to int */
#pragma warning (disable:4996)	/* Unsafe functions */

#undef _DEBUG	/* Visual Studio is doing some macro redefinition otherwise */

typedef unsigned short mode_t;

#define	strncasecmp	_strnicmp
#define	strcasecmp	_stricmp

#endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.