Package: libpoker-eval
Version: 134.0-1
Severity: minor
Hi,
I'm trying to use JokerDeck as default deck instead of StdDeck.
To achieve this, I wrote following code:
#include "poker_defs.h"
#include "game_joker.h"
int main(void) {
/* actual code here */
return 0;
}
While compiling above code, I have few `redefined' warnings:
$ gcc -Wall `pkg-config --libs --cflags poker-eval` test.c
In file included from /usr/include/poker-eval/game_joker.h:26,
from test.c:2:
/usr/include/poker-eval/deck_joker.h:227:1: warning: "CardMask_NOT" redefined
In file included from /usr/include/poker-eval/game_std.h:26,
from /usr/include/poker-eval/poker_defs.h:85,
from test.c:1:
/usr/include/poker-eval/deck_std.h:288:1: warning: this is the location of the
previous definition
In file included from /usr/include/poker-eval/game_joker.h:26,
from test.c:2:
/usr/include/poker-eval/deck_joker.h:229:1: warning: "CardMask_XOR" redefined
In file included from /usr/include/poker-eval/game_std.h:26,
from /usr/include/poker-eval/poker_defs.h:85,
from test.c:1:
/usr/include/poker-eval/deck_std.h:290:1: warning: this is the location of the
previous definition
In file included from /usr/include/poker-eval/game_joker.h:26,
from test.c:2:
/usr/include/poker-eval/deck_joker.h:230:1: warning: "CardMask_AND" redefined
In file included from /usr/include/poker-eval/game_std.h:26,
from /usr/include/poker-eval/poker_defs.h:85,
from test.c:1:
/usr/include/poker-eval/deck_std.h:291:1: warning: this is the location of the
previous definition
In file included from /usr/include/poker-eval/game_joker.h:26,
from test.c:2:
/usr/include/poker-eval/deck_joker.h:235:1: warning: "CardMask_UNSET" redefined
In file included from /usr/include/poker-eval/game_std.h:26,
from /usr/include/poker-eval/poker_defs.h:85,
from test.c:1:
/usr/include/poker-eval/deck_std.h:296:1: warning: this is the location of the
previous definition
IMHO, it seems that #undefs to these macros are missing in deck_undef.h.
Thus, adding
#undef CardMask_NOT
#undef CardMask_XOR
#undef CardMask_AND
#undef CardMask_UNSET
to deck_undef.h solves the problem.
Regards,
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libpoker-eval depends on:
ii libc6 2.7-12 GNU C Library: Shared libraries
libpoker-eval recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]