1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 04:25:10 -07:00

Warn if the library is being compiled in a custom way

This commit is contained in:
Frank Denis 2016-07-02 10:05:43 +02:00
parent a7a3235a39
commit 29492143ab
2 changed files with 9 additions and 1 deletions

View File

@ -676,6 +676,8 @@ AM_CONDITIONAL([EMSCRIPTEN], [test "x$EMSCRIPTEN" != "x"])
AM_CONDITIONAL([NATIVECLIENT], [test "x$NATIVECLIENT" != "x"])
AC_DEFINE([CONFIGURED], [1], [the build system was properly configured])
dnl Libtool.
LT_INIT([dlopen])

View File

@ -19,7 +19,7 @@
#include "private/mutex.h"
#if !defined(_MSC_VER) && 1
# warning This is unstable, untested, development code.
# warning *** This is unstable, untested, development code.
# warning It might not compile. It might not work as expected.
# warning It might be totally insecure.
# warning Do not use this in production.
@ -27,6 +27,12 @@
# warning Alternatively, use the "stable" branch in the git repository.
#endif
#if !defined(_MSC_VER) && (!defined(CONFIGURED) || CONFIGURED != 1)
# warning *** The library is being compiled using an undocumented method.
# warning This is not supported. It has not been tested, it might not
# warning work as expected, and performance is likely to be suboptimal.
#endif
static volatile int initialized;
int