merge the formfield patch from ooo-build
[ooovba.git] / applied_patches / 0267-stlport-solaris-fileno.diff
blob49a3d7af54e317f783b17040eff0a1604bac0181
1 --- stlport/STLport-4.0.patch.old 2009-04-02 11:01:35.000000000 +0000
2 +++ stlport/STLport-4.0.patch 2009-04-06 16:41:56.000000000 +0000
3 @@ -3321,6 +3321,23 @@
4 inline char* _FILE_I_next(const FILE& __f) { return (char*) __f._ptr; }
5 inline char* _FILE_I_end(const FILE& __f)
6 ***************
7 +*** 92,98 ****
8 + typedef unsigned char* _File_ptr_type;
9 + #endif
11 +! inline int _FILE_fd(const FILE& __f) { return __f._file; }
12 + inline char* _FILE_I_begin(const FILE& __f) { return (char*) __f._base; }
13 + inline char* _FILE_I_next(const FILE& __f) { return (char*) __f._ptr; }
14 + inline char* _FILE_I_end(const FILE& __f)
15 +--- 92,98 ----
16 + typedef unsigned char* _File_ptr_type;
17 + #endif
19 +! inline int _FILE_fd(const FILE& __f) { return fileno(__CONST_CAST(FILE*,&__f)); }
20 + inline char* _FILE_I_begin(const FILE& __f) { return (char*) __f._base; }
21 + inline char* _FILE_I_next(const FILE& __f) { return (char*) __f._ptr; }
22 + inline char* _FILE_I_end(const FILE& __f)
23 +***************
24 *** 377,382 ****
25 --- 380,388 ----
26 # endif