summaryrefslogtreecommitdiff
path: root/usr.bin/asn1_compile/getarg.h
diff options
context:
space:
mode:
authorBjorn Sandell <biorn@cvs.openbsd.org>2005-10-16 18:56:36 +0000
committerBjorn Sandell <biorn@cvs.openbsd.org>2005-10-16 18:56:36 +0000
commit9b65ff1ed6cf7a1e29a392de0ba9fe5d722eccef (patch)
treef82203bfbf633ffa333b45fecec06ff9cff005cf /usr.bin/asn1_compile/getarg.h
parent14d3e879f4c504b87ea309e2ae1e198d1572aaa0 (diff)
sync with heimdal 0.7
Diffstat (limited to 'usr.bin/asn1_compile/getarg.h')
-rw-r--r--usr.bin/asn1_compile/getarg.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/usr.bin/asn1_compile/getarg.h b/usr.bin/asn1_compile/getarg.h
index 5224a1a4bee..ef3e92dd945 100644
--- a/usr.bin/asn1_compile/getarg.h
+++ b/usr.bin/asn1_compile/getarg.h
@@ -31,13 +31,21 @@
* SUCH DAMAGE.
*/
-/* $KTH: getarg.h,v 1.12 2002/04/18 08:50:08 joda Exp $ */
+/* $KTH: getarg.h,v 1.14 2005/04/13 05:52:27 lha Exp $ */
#ifndef __GETARG_H__
#define __GETARG_H__
#include <stddef.h>
+#ifndef ROKEN_LIB_FUNCTION
+#ifdef _WIN32
+#define ROKEN_LIB_FUNCTION _stdcall
+#else
+#define ROKEN_LIB_FUNCTION
+#endif
+#endif
+
struct getargs{
const char *long_name;
char short_name;
@@ -78,14 +86,17 @@ typedef struct getarg_collect_info {
void *data;
} getarg_collect_info;
-int getarg(struct getargs *args, size_t num_args,
- int argc, char **argv, int *goptind);
+int ROKEN_LIB_FUNCTION
+getarg(struct getargs *args, size_t num_args,
+ int argc, char **argv, int *goptind);
-void arg_printusage (struct getargs *args,
- size_t num_args,
- const char *progname,
- const char *extra_string);
+void ROKEN_LIB_FUNCTION
+arg_printusage (struct getargs *args,
+ size_t num_args,
+ const char *progname,
+ const char *extra_string);
-void free_getarg_strings (getarg_strings *);
+void ROKEN_LIB_FUNCTION
+free_getarg_strings (getarg_strings *);
#endif /* __GETARG_H__ */