| Server IP : 82.208.35.60 / Your IP : 216.73.217.33 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/graphics/epsonscan2/files/ |
Upload File : |
--- src/SaneWrapper/defines.h.orig 2021-11-25 00:56:59 UTC
+++ src/SaneWrapper/defines.h
@@ -36,14 +36,30 @@ typedef enum {
} bool;
#endif
#include <stdlib.h>
+#undef _assert
#define _assert(type,condition) \
if (!(condition)) \
{ \
exit (EXIT_FAILURE); \
}
+#ifndef __FreeBSD__
#define require(condition) _assert ("require", condition)
#define promise(condition) _assert ("promise", condition)
+#else
+#define require(condition) \
+ if (!(condition)) \
+ { \
+ exit (EXIT_FAILURE); \
+ }
+#define promise(condition) \
+ if (!(condition)) \
+ { \
+ exit (EXIT_FAILURE); \
+ }
+#endif
+#ifndef __FreeBSD__
#include <alloca.h>
+#endif
#include <stdlib.h>
#define t_alloca(sz,t) ((t *) alloca ((sz) * sizeof (t)))
#define t_calloc(sz,t) ((t *) calloc ((sz) , sizeof (t)))