home *** CD-ROM | disk | FTP | other *** search
- Subject: emx 0.8f patch #6: video.h and winmgr.h with C++
-
- I forgot to use
-
- extern "C"
-
- in sys/video.h and sys/winmgr.h. Apply the following patch in the
- directory /emx/include/sys if you want to use these header files with
- C++.
-
- diff -c 1/video.h ./video.h
- *** 1/video.h Mon Feb 08 13:33:20 1993
- --- ./video.h Mon Feb 08 13:33:20 1993
- ***************
- *** 3,8 ****
- --- 3,12 ----
- #if !defined (_SYS_VIDEO_H)
- #define _SYS_VIDEO_H
-
- + #if defined (__cplusplus)
- + extern "C" {
- + #endif
- +
- #if !defined (_VA_LIST)
- #define _VA_LIST
- typedef char *va_list;
- ***************
- *** 89,93 ****
- --- 93,101 ----
- void v_scroll (int tl_x, int tl_y, int br_x, int br_y, int count, int flag);
- void v_scrollup (void);
- int v_vprintf (__const__ char *fmt, va_list arg_ptr);
- +
- + #if defined (__cplusplus)
- + }
- + #endif
-
- #endif /* !defined (_SYS_VIDEO_H) */
- diff -c 1/winmgr.h ./winmgr.h
- *** 1/winmgr.h Mon Feb 08 13:33:04 1993
- --- ./winmgr.h Mon Feb 08 13:33:04 1993
- ***************
- *** 3,8 ****
- --- 3,12 ----
- #if !defined (_SYS_WINMGR_H)
- #define _SYS_WINMGR_H
-
- + #if defined (__cplusplus)
- + extern "C" {
- + #endif
- +
- #if !defined (_VA_LIST)
- #define _VA_LIST
- typedef char *va_list;
- ***************
- *** 101,105 ****
- --- 105,113 ----
- void wm_update (wm_handle wh, int flag);
- int wm_vprintf (wm_handle wh, __const__ char *fmt, va_list arg_ptr);
- void wm_wrap (wm_handle wh, int wrap_flag);
- +
- + #if defined (__cplusplus)
- + }
- + #endif
-
- #endif /* !defined (_SYS_WINMGR_H) */
-
- Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
-