libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

VC++ support patch


From: Boehne, Robert
Subject: VC++ support patch
Date: Mon, 1 Dec 2003 14:28:42 -0600

Hello,

Current CVS libltdl almost compiles in Visual C++ 6, the problem is with the 
macro LT_USE_WINDOWS_DIRENT_EMULATION.  It is #defined like so:
<SNIP>
#else  /* __WINDOWS__ */
/* Use some wrapper code to emulate dirent on windows..  */
# define LT_USE_WINDOWS_DIRENT_EMULATION
#endif
<SNIP>

But the test for it is "# if LT_USE_WINDOWS_DIRENT_EMULATION" which throws an 
'invalid integer expression' error.  There are two ways to make it work, in the 
line where it is defined, #define it to "1", or change the value check to a 
check for definition.

Thanks,

Robert


Index: ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.184
diff -u -r1.184 ltdl.c
--- ltdl.c      18 Nov 2003 22:39:37 -0000      1.184
+++ ltdl.c      1 Dec 2003 20:26:18 -0000
@@ -101,7 +101,7 @@
 
 #else  /* __WINDOWS__ */
 /* Use some wrapper code to emulate dirent on windows..  */
-# define LT_USE_WINDOWS_DIRENT_EMULATION
+# define LT_USE_WINDOWS_DIRENT_EMULATION 1
 #endif
 
 #if WITH_DMALLOC
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - -
This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.If 
you have received this e-mail in error please notify the sender immediately and 
delete this e-mail from your system.Please note that any views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of Ricardo (save for reports and other documentation formally 
approved and signed for release to the intended recipient).Only Directors or 
Duly Authorised Officers are authorised to enter into legally binding 
obligations on behalf of Ricardo unless the obligation is contained within a 
Ricardo Purchase Order. Ricardo may monitor outgoing and incoming e-mails and 
other telecommunications on its e-mail and telecommunications systems. By 
replying to this e-mail you give consent to such monitoring.The recipient 
should check this e-mail and any attachments for the presence of viruses. 
Ricardo accepts no liability for any damage caused by any virus transmitted by 
this e-mail. "Ricardo" means Ricardo plc and its subsidiary companies.
Ricardo plc is a public limited company registered in England with registered 
number 00222915.
The registered office of Ricardo plc is Bridge Works, Shoreham-by Sea, West 
Sussex, BN43 5FG.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
- - - - - 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]