add ROKEN_LIB_FUNCTION glue

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14787 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-04-13 13:19:07 +00:00
parent 28303a2798
commit c462f2b1a2
2 changed files with 19 additions and 3 deletions

View File

@@ -35,6 +35,14 @@
#ifndef _GLOB_H_ #ifndef _GLOB_H_
#define _GLOB_H_ #define _GLOB_H_
#ifndef ROKEN_LIB_FUNCTION
#ifdef _WIN32
#define ROKEN_LIB_FUNCTION _stdcall
#else
#define ROKEN_LIB_FUNCTION
#endif
#endif
#define glob_t rk_glob_t #define glob_t rk_glob_t
#define glob rk_glob #define glob rk_glob
#define globfree rk_globfree #define globfree rk_globfree

View File

@@ -36,13 +36,21 @@
#ifndef __PARSE_BYTES_H__ #ifndef __PARSE_BYTES_H__
#define __PARSE_BYTES_H__ #define __PARSE_BYTES_H__
int #ifndef ROKEN_LIB_FUNCTION
#ifdef _WIN32
#define ROKEN_LIB_FUNCTION _stdcall
#else
#define ROKEN_LIB_FUNCTION
#endif
#endif
int ROKEN_LIB_FUNCTION
parse_bytes (const char *s, const char *def_unit); parse_bytes (const char *s, const char *def_unit);
int int ROKEN_LIB_FUNCTION
unparse_bytes (int t, char *s, size_t len); unparse_bytes (int t, char *s, size_t len);
int int ROKEN_LIB_FUNCTION
unparse_bytes_short (int t, char *s, size_t len); unparse_bytes_short (int t, char *s, size_t len);
#endif /* __PARSE_BYTES_H__ */ #endif /* __PARSE_BYTES_H__ */