ext/phc-winner-argon2/src/thread.c in argon2-1.1.1 vs ext/phc-winner-argon2/src/thread.c in argon2-1.1.2
- old
+ new
@@ -1,5 +1,24 @@
+/*
+ * Argon2 reference source code package - reference C implementations
+ *
+ * Copyright 2015
+ * Daniel Dinu, Dmitry Khovratovich, Jean-Philippe Aumasson, and Samuel Neves
+ *
+ * You may use this work under the terms of a Creative Commons CC0 1.0
+ * License/Waiver or the Apache Public License 2.0, at your option. The terms of
+ * these licenses can be found at:
+ *
+ * - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
+ * - Apache 2.0 : http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * You should have received a copy of both of these licenses along with this
+ * software. If not, they may be obtained at the above URLs.
+ */
+
+#if !defined(ARGON2_NO_THREADS)
+
#include "thread.h"
#if defined(_WIN32)
#include <windows.h>
#endif
@@ -32,5 +51,7 @@
_endthreadex(0);
#else
pthread_exit(NULL);
#endif
}
+
+#endif /* ARGON2_NO_THREADS */