--- mstools/h/ios.h 2018/08/09 18:21:04 1.1 +++ mstools/h/ios.h 2018/08/09 18:22:58 1.1.1.2 @@ -1,7 +1,7 @@ /*** *ios.h - definitions/declarations for the ios class. * -* Copyright (c) 1990-1992, Microsoft Corporation. All rights reserved. +* Copyright (c) 1990-1993, Microsoft Corporation. All rights reserved. * *Purpose: * This file defines the classes, values, macros, and functions @@ -15,10 +15,13 @@ #ifdef _MT -#include // critical section declarations +#include // critical section declarations + +extern "C" { void _mtlockinit(PRTL_CRITICAL_SECTION); void _mtlock(PRTL_CRITICAL_SECTION); void _mtunlock(PRTL_CRITICAL_SECTION); +} #endif #ifndef NULL @@ -29,12 +32,17 @@ void _mtunlock(PRTL_CRITICAL_SECTION); #define EOF (-1) #endif +// C4505: "unreferenced local function has been removed" +#pragma warning(disable:4505) // disable C4505 warning +// #pragma warning(default:4505) // use this to reenable, if desired + +// C4103 : "used #pragma pack to change alignment" +#pragma warning(disable:4103) // disable C4103 warning +// #pragma warning(default:4103) // use this to reenable, if desired + // Force word packing to avoid possible -Zp override #pragma pack(4) -#pragma warning(disable:4505) // disable unwanted /W4 warning -// #pragma warning(default:4505) // use this to reenable, if necessary - class streambuf; class ostream;