]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - crypto.c
Improve clang support. Add tcc support. Clang builds now perform as good as gcc
[xonotic/darkplaces.git] / crypto.c
index a6ff74526798807c723a8013730add3d1ebcc576..4589741a18095bdc32d3574c3e8ffad4c3f3688a 100644 (file)
--- a/crypto.c
+++ b/crypto.c
@@ -158,7 +158,7 @@ static size_t Crypto_UnParsePack(char *buf, size_t len, unsigned long header, co
 
 // d0_blind_id interface
 #define D0_EXPORT
-#ifdef __GNUC__
+#if defined (__GNUC__) || (__clang__) || (__TINYC__)
 #define D0_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
 #else
 #define D0_WARN_UNUSED_RESULT