[pcre-dev] _setmode not working on Borland Builder 5

Pàgina inicial
Delete this message
Autor: Thorsten Schöning
Data:  
A: pcre-dev
Assumpte: [pcre-dev] _setmode not working on Borland Builder 5
Hello,

I tried to register an account for Bugzilla, but didn't get a
confirmation email yet, therefore I try this way.

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(). */



Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig

Telefon: Potsdam: 0331-743881-0
E-Mail:  tschoening@???
Web:     http://www.am-soft.de


AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow