Commit 4b601455 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Protect these header files from multiple inclusion

Up until now, we only included them in the tarot/game_private_impl.h
header file; but we also need to include them in the counter API.
parent 7b4e67e7
......@@ -19,6 +19,9 @@
#include <tarot/cards_private.h>
#include <assert.h>
#ifndef H_TAROT_TRICK_PRIVATE_IMPL_INCLUDED
#define H_TAROT_TRICK_PRIVATE_IMPL_INCLUDED
static inline size_t
_trick_get_n_cards (const TarotTrickHandle * trick)
{
......@@ -625,3 +628,5 @@ trick_add (TarotTrickHandle * trick, TarotCard card, int force_taker)
}
#include <tarot/cards_private_impl.h>
#endif /* not H_TAROT_TRICK_PRIVATE_IMPL_INCLUDED */
......@@ -17,6 +17,9 @@
#include <tarot/tricks_private.h>
#ifndef H_TAROT_TRICKS_PRIVATE_IMPL_INCLUDED
#define H_TAROT_TRICKS_PRIVATE_IMPL_INCLUDED
static inline size_t
tricks_get_i_current (const TarotTricksHandle * tricks)
{
......@@ -361,3 +364,5 @@ tricks_add (TarotTricksHandle * tricks, TarotPlayer taker,
}
return error;
}
#endif /* not H_TAROT_TRICKS_PRIVATE_IMPL_INCLUDED */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment