[pcre-dev] [Bug 1036] New: _setmode not working on Borland B…

Góra strony
Delete this message
Autor: Thorsten Schöning
Data:  
Dla: pcre-dev
Temat: [pcre-dev] [Bug 1036] New: _setmode not working on Borland Builder 5
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1036
           Summary: _setmode not working on Borland Builder 5
           Product: PCRE
           Version: 8.10
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: tschoening@???
                CC: pcre-dev@???



Created an attachment (id=410)
--> (http://bugs.exim.org/attachment.cgi?id=410)
redefinition of _setmode to setmode in bcb5

Hello,

I downloaded PCRE 8.10 today and built pcretest with Borland Builder
5 on Windows, which is old but I'm stuck to and it worked fine except
one thing: _setmode is not available in Borland Builder, but only
setmode. Therefore I added a macro which redefines _setmode under
Borland Builder to use setmode. If you are interested in merging, find
a patch attached.

Index: pcretest.c
===================================================================
--- pcretest.c (Revision 1700)
+++ pcretest.c (Arbeitskopie)
@@ -79,6 +79,10 @@
#define fileno _fileno
#endif

+#ifdef __BORLANDC__
+#define _setmode(handle, mode) setmode(handle, mode)
+#endif
+
 #else
 #include <sys/time.h>          /* These two includes are needed */
 #include <sys/resource.h>      /* for setrlimit(). */



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email