aspell-devel
[Top][All Lists]
Advanced

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

Re: [aspell-devel] Cygwin / Mingw


From: Ruurd A. Reitsma
Subject: Re: [aspell-devel] Cygwin / Mingw
Date: Tue, 27 Aug 2002 01:46:12 -0700 (PDT)

--- Kevin Atkinson <address@hidden> wrote:
> Please see my post to aspell-user.

OK....turned out to be very easy after all!

I've included the full patch, which also produces aspell.exe

> 
> > Btw. it is possible to get the common lib to compile using the intel
6.0
> > compiler.
> 
> It may be.  I have never tried.  Clean patches gladly excepted.

I'll give it a shot. Probably needs more of this ugly dllimport nonsense.

Ruurd



__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
diff -u /tmp/aspell-0.50/common/iostream.hpp common/iostream.hpp
--- /tmp/aspell-0.50/common/iostream.hpp        2002-07-24 21:56:48.000000000 
+0200
+++ common/iostream.hpp 2002-08-27 10:12:37.000000000 +0200
@@ -9,6 +9,12 @@
 
 #include "fstream.hpp"
 
+#if defined(__CYGWIN__) || defined (_WIN32)
+#define DLLIMPORT __declspec(dllimport)
+#else
+#define DLLIMPORT
+#endif
+
 namespace acommon {
 
   // These streams for the time being will be based on stdin, stdout,
@@ -16,9 +22,9 @@
   // functions.  It is also safe to assume that modifcations to the
   // state of the standard streams will effect these.
 
-  extern FStream CIN;
-  extern FStream COUT;
-  extern FStream CERR;
+  extern DLLIMPORT FStream CIN;
+  extern DLLIMPORT FStream COUT;
+  extern DLLIMPORT FStream CERR;
 }
 
 #endif
Only in common: settings.h
diff -u /tmp/aspell-0.50/common/speller.cpp common/speller.cpp
--- /tmp/aspell-0.50/common/speller.cpp 2002-08-21 10:46:22.000000000 +0200
+++ common/speller.cpp  2002-08-27 09:46:15.000000000 +0200
@@ -7,6 +7,8 @@
 #include "speller.hpp"
 #include "convert.hpp"
 #include "clone_ptr-t.hpp"
+#include "Config.hpp"
+#include "copy_ptr-t.hpp"
 
 namespace acommon {
 

reply via email to

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