Menu

#5 errno

v1.5.1
open
nobody
jjErrno (1)
5
2012-09-19
2008-06-21
Anonymous
No

The compilation is tried in the Windows environment. The problem occurs in variable "errno" when compiling with the MultiThreading.

You should change the variable name.
short errno
->
short error_No

jj/error.h
void jjraise(jjErrno &eh, short errno);
void jjraise2_(jjErrno &eh, short errno, const char *, int);

stdlib.h

if defined(_MT) || defined(_DLL)

_CRTIMP int * cdecl _errno(void);
_CRTIMP unsigned long *
cdecl __doserrno(void);

define errno (*_errno())

define _doserrno (*__doserrno())

else / ndef _MT && ndef _DLL /

_CRTIMP extern int errno; / XENIX style error number /
_CRTIMP extern unsigned long _doserrno; / OS system error value /

endif / _MT || _DLL /

Regards,
Masahiko KANETAKA
kane4d@gmail.com

Discussion

Anonymous
Anonymous

Add attachments
Cancel