--- mstools/h/sys/utime.h 2018/08/09 18:20:35 1.1.1.2 +++ mstools/h/sys/utime.h 2018/08/09 18:23:12 1.1.1.4 @@ -1,7 +1,7 @@ /*** -*sys\utime.h - definitions/declarations for utime() +*sys/utime.h - definitions/declarations for utime() * -* Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved. +* Copyright (c) 1985-1993, Microsoft Corporation. All rights reserved. * *Purpose: * This file defines the structure used by the utime routine to set @@ -19,12 +19,29 @@ extern "C" { #endif -#ifndef MIPS -#if (_MSC_VER <= 600) -#define __cdecl _cdecl -#endif +/* + * Conditional macro definition for function calling type and variable type + * qualifiers. + */ +#if ( (_MSC_VER >= 800) && (_M_IX86 >= 300) ) + +/* + * Definitions for MS C8-32 (386/486) compiler + */ +#define _CRTAPI1 __cdecl +#define _CRTAPI2 __cdecl + +#else + +/* + * Other compilers (e.g., MIPS) + */ +#define _CRTAPI1 +#define _CRTAPI2 + #endif + #ifndef _TIME_T_DEFINED typedef long time_t; #define _TIME_T_DEFINED @@ -47,8 +64,8 @@ struct _utimbuf { /* function prototypes */ -int _utime(char *, struct _utimbuf *); -int _futime(int, struct _utimbuf *); +int _CRTAPI1 _utime(char *, struct _utimbuf *); +int _CRTAPI1 _futime(int, struct _utimbuf *); #if !__STDC__ /* Non-ANSI name for compatibility */