home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / archive / emx / patches / patch06 < prev    next >
Encoding:
Text File  |  1993-02-16  |  1.6 KB  |  69 lines

  1. Subject: emx 0.8f patch #6: video.h and winmgr.h with C++
  2.  
  3. I forgot to use
  4.  
  5.   extern "C"
  6.  
  7. in sys/video.h and sys/winmgr.h.  Apply the following patch in the
  8. directory /emx/include/sys if you want to use these header files with
  9. C++.
  10.  
  11. diff -c 1/video.h ./video.h
  12. *** 1/video.h    Mon Feb 08 13:33:20 1993
  13. --- ./video.h    Mon Feb 08 13:33:20 1993
  14. ***************
  15. *** 3,8 ****
  16. --- 3,12 ----
  17.   #if !defined (_SYS_VIDEO_H)
  18.   #define _SYS_VIDEO_H
  19.   
  20. + #if defined (__cplusplus)
  21. + extern "C" {
  22. + #endif
  23.   #if !defined (_VA_LIST)
  24.   #define _VA_LIST
  25.   typedef char *va_list;
  26. ***************
  27. *** 89,93 ****
  28. --- 93,101 ----
  29.   void v_scroll (int tl_x, int tl_y, int br_x, int br_y, int count, int flag);
  30.   void v_scrollup (void);
  31.   int v_vprintf (__const__ char *fmt, va_list arg_ptr);
  32. + #if defined (__cplusplus)
  33. + }
  34. + #endif
  35.   
  36.   #endif /* !defined (_SYS_VIDEO_H) */
  37. diff -c 1/winmgr.h ./winmgr.h
  38. *** 1/winmgr.h    Mon Feb 08 13:33:04 1993
  39. --- ./winmgr.h    Mon Feb 08 13:33:04 1993
  40. ***************
  41. *** 3,8 ****
  42. --- 3,12 ----
  43.   #if !defined (_SYS_WINMGR_H)
  44.   #define _SYS_WINMGR_H
  45.   
  46. + #if defined (__cplusplus)
  47. + extern "C" {
  48. + #endif
  49.   #if !defined (_VA_LIST)
  50.   #define _VA_LIST
  51.   typedef char *va_list;
  52. ***************
  53. *** 101,105 ****
  54. --- 105,113 ----
  55.   void wm_update (wm_handle wh, int flag);
  56.   int wm_vprintf (wm_handle wh, __const__ char *fmt, va_list arg_ptr);
  57.   void wm_wrap (wm_handle wh, int wrap_flag);
  58. + #if defined (__cplusplus)
  59. + }
  60. + #endif
  61.   
  62.   #endif /* !defined (_SYS_WINMGR_H) */
  63.  
  64. Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
  65.