[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Windows port (hton{l,s})
From: |
Vincent Caron |
Subject: |
Windows port (hton{l,s}) |
Date: |
Tue, 22 Oct 2002 15:14:59 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910 |
Hello,
This is the last trouble with the Windows port, I finaly get a nice
'native' flex 2.5.23 up & running (ok, I did not 'made check' yet). This
one is related to the htonl/htons byteswap functions. I couldn't pack
the #include <winsock2.h> into flexdef.h, because many trivial symbols
clash with the Windows headers, such as the 'CHAR' token/macro in
parse.c. This is the reason why it's exclusively at the very beginning
of tables.c. Doesn't look pretty :-/
If anyone is interested in MSVC7 project files, they are available at
http://zerodeux.net/misc/flex/
*** flex-2.5.23-orig/tables.c Fri Sep 13 23:54:04 2002
--- flex-2.5.23-my/tables.c Tue Oct 22 15:03:00 2002
***************
*** 33,38 ****
--- 33,41 ----
*/
+ #ifdef _WIN32
+ #include <winsock2.h>
+ #endif
#include "flexdef.h"
#include "tables.h"
- Windows port (hton{l,s}),
Vincent Caron <=