Skip to content

Commit

Permalink
fix declaration c++11 - C99 (build on macOS 10.15) (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: AndyBe <andreas.benzler@gmail.com>
  • Loading branch information
andybe and winehub committed May 27, 2021
1 parent 77630a1 commit 27b2fed
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions StormLib/src/libtomcrypt/src/headers/tomcrypt_custom.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef TOMCRYPT_CUSTOM_H_
#define TOMCRYPT_CUSTOM_H_

#include "tomcrypt_cfg.h"

#define LTC_NO_CIPHERS
#define LTC_NO_HASHES
#define LTC_NO_MACS
Expand Down Expand Up @@ -410,6 +412,16 @@

#endif

/* forward declaration c++11 - C99
for misc/crypt_libc.c
*/

LTC_EXPORT void * LTC_CALL LibTomMalloc(size_t n);
LTC_EXPORT void * LTC_CALL XCALLOC(size_t n, size_t s);
LTC_EXPORT void * LTC_CALL XREALLOC(void *p, size_t n);
LTC_EXPORT void LTC_CALL XFREE(void *p);
LTC_EXPORT void LTC_CALL XQSORT(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *));

/* Debuggers */

/* define this if you use Valgrind, note: it CHANGES the way SOBER-128 and LTC_RC4 work (see the code) */
Expand Down

0 comments on commit 27b2fed

Please sign in to comment.