diff options
author | Nicholas Tay <nick@windblume.net> | 2024-04-08 22:44:22 +1000 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2024-04-08 22:44:22 +1000 |
commit | eee364e8124bfb99079537a789b8aca6476804a9 (patch) | |
tree | 5816e8e4d3852cf68f7b9019774d13a24740ad03 | |
parent | 4bb135bc104adcef1bea79726b8a6e5d6c73449f (diff) | |
download | passgen-eee364e8124bfb99079537a789b8aca6476804a9.tar.gz passgen-eee364e8124bfb99079537a789b8aca6476804a9.tar.bz2 passgen-eee364e8124bfb99079537a789b8aca6476804a9.zip |
Only display pragma message on gcc or clang
This fixes compilation on older compilers, such as openwatcom
-rw-r--r-- | passgen.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -67,7 +67,9 @@ bool init_rng(void) )) return false; #elif ! defined (USE_GETENTROPY) && ! defined (USE_WINCRYPT) +#if (defined(__GNUC__) || defined(__clang__)) #pragma message "Using fallback insecure RNG seeding!" +#endif /* * TODO: seed better RNG * this isn't very good, but it's enough(?) for now |