weechat-dev
[Top][All Lists]
Advanced

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

[Weechat-dev] [patch #6916] cygwin patch


From: anonymous
Subject: [Weechat-dev] [patch #6916] cygwin patch
Date: Mon, 14 Sep 2009 10:00:33 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

Follow-up Comment #1, patch #6916 (project weechat):

Also, there is a problem in src/plugin/scripts/weechat-perl-api.c.
Every function is defined like this "static XS(function_name)",
XS being a macro returning -on cygwin-:
__declspec(dllexport) void functionName(pTHX_ CV* cv)

It seems that on windows, you can't export a static function, so every
function definition trigger an error:
../../../../../weechat-git/src/plugins/scripts/perl/weechat-perl-api.c:69:
error: external linkage required for symbol 'functionName' because of
'dllexport' attribute.

I fixed this by removing "static" on every fonction and it seems to work, but
there is probably a reason why all those functions are declared as static so i
didn't included that in my patch.
A dev should look into it.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6916>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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