/*****************************************************************************\
*									      *
*  mscompat.h  -  header for MSC extentions for GNU C/C++		      *
*									      *
*									      *
*  Copyright (c) 1997 Rainer Schnitker.  All rights reserved.		      *
*									      *
\*****************************************************************************/

#ifndef _MSCOMPAT_H
#define _MSCOMPAT_H

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __MT__

#ifndef __stdcall
#define __stdcall __attribute__((stdcall))
#endif

unsigned long _beginthreadex (void * security, unsigned stack_size,
    unsigned __stdcall (*start) (void *),
    void * arg_list, unsigned init_flag, unsigned * tid);

void _endthreadex (unsigned retval);

#endif /* __MT__ */

#ifdef __cplusplus
};
#endif
#endif /* _MSCOMPAT_H */
