I just got this report (http://bugs.debian.org/663007) from a debian user:
> xdo.h includes the name "class" which is a reserved keyword in c++.
> This prevents including it in a C++ program:
> extern "C" {
> #include <xdo.h>
> }
>
> g++ file.cpp
> In file included from test.cpp:2:0:
> /usr/include/xdo.h:530:37: error: expected ',' or '...' before 'class'
>
> please rename or remove the parameter.
I note that xdo.c already has the parameter re-named "_class" instead of
"class", and it doesn't look to me like shifting the name of the
parameter in xdo.h would change either the API or the ABI.
What do you think of the attached patch?
Regards,
--dkg
Hmm, i attached a patch to my original e-mail. Maybe it got stripped by
your MUA somehow? I'm trying again in this message.
> - otherwise I can hand patch it.
> FYI, in case I forgot to announce - the source repo lives here now:
> http://github.com/jordansissel/xdotool
Yep, the patch is based on that source.
Regards,
--dkg
On 03/08/2012 10:01 AM, Jordan Sissel wrote:
>On Thu, Mar 8, 2012 at 6:58 AM, Daniel Kahn Gillmor <d...@fifthhorseman.net>wrote:
What do you think of the attached patch?
Yeah shoot me a pull request or patch
Hmm, i attached a patch to my original e-mail. Maybe it got stripped by your MUA somehow? I'm trying again in this message.
Thanks, Jordan!
--dkg