--- mstools/h/streamb.h 2018/08/09 18:21:04 1.1.1.1 +++ mstools/h/streamb.h 2018/08/09 18:22:57 1.1.1.2 @@ -1,7 +1,7 @@ /*** *streamb.h - definitions/declarations for the streambuf 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 @@ -14,12 +14,13 @@ #define _INC_STREAMB -#include // need ios::seek_dir definition -#ifdef _MT -#include // required for Multi-thread declarations +#include // need ios::seek_dir definition +#ifdef _MT // defined in ios.h +extern "C" { void _mtlockinit(PRTL_CRITICAL_SECTION); void _mtlock(PRTL_CRITICAL_SECTION); void _mtunlock(PRTL_CRITICAL_SECTION); +} #endif #ifndef NULL @@ -30,12 +31,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 - typedef long streampos, streamoff; class ios;