summaryrefslogtreecommitdiff
path: root/libdigidoc/pkcs11/unix.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdigidoc/pkcs11/unix.h')
-rw-r--r--libdigidoc/pkcs11/unix.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libdigidoc/pkcs11/unix.h b/libdigidoc/pkcs11/unix.h
new file mode 100644
index 0000000..2e7eb66
--- /dev/null
+++ b/libdigidoc/pkcs11/unix.h
@@ -0,0 +1,24 @@
+
+
+#ifndef UNIX_H
+#define UNIX_H
+
+#define CK_PTR *
+
+#define CK_DEFINE_FUNCTION(returnType, name) \
+ returnType name
+
+#define CK_DECLARE_FUNCTION(returnType, name) \
+ returnType name
+
+#define CK_DECLARE_FUNCTION_POINTER(returnType, name) \
+ returnType (* name)
+
+#define CK_CALLBACK_FUNCTION(returnType, name) \
+ returnType (* name)
+
+#ifndef NULL_PTR
+#define NULL_PTR 0
+#endif
+
+#endif