From 1b42db58e982ae5eeb2e8beda13ce3aad84504d7 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Mon, 21 Nov 2011 01:42:16 -0800 Subject: [PATCH] Added warning for non-threadsafe impl --- libguac/src/error.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libguac/src/error.c b/libguac/src/error.c index 3ceedf43..9f5a0fa2 100644 --- a/libguac/src/error.c +++ b/libguac/src/error.c @@ -145,5 +145,8 @@ guac_status* __guac_error() { return &__guac_error_unsafe_storage; } +/* Warn about threadsafety */ +#warn No threadsafe implementation of __guac_error exists for your platform, so a default non-threadsafe implementation has been used instead. This may lead to incorrect status codes being reported for failures. Please consider adding support for your platform, or filing a bug report with the Guacamole project. + #endif