fix errno linkage
Dimitrie O. Paun
dpaun at rogers.com
Thu Mar 27 18:06:30 CST 2003
ChangeLog
Fix errno linkage when compiling in C++.
Index: include/msvcrt/errno.h
===================================================================
RCS file: /var/cvs/wine/include/msvcrt/errno.h,v
retrieving revision 1.3
diff -u -r1.3 errno.h
--- include/msvcrt/errno.h 18 Dec 2002 20:17:20 -0000 1.3
+++ include/msvcrt/errno.h 25 Mar 2003 03:34:07 -0000
@@ -112,7 +112,15 @@
#endif /* USE_MSVCRT_PREFIX */
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern int* MSVCRT(_errno)(void);
+
+#ifdef __cplusplus
+}
+#endif
#ifndef USE_MSVCRT_PREFIX
# define errno (*_errno())
--
Dimi.
More information about the wine-patches
mailing list