Blob Blame History Raw
#ifndef PTYCON_API_H
#define PTYCON_API_H

/* ptyc_export */
#if	defined(__dllexport)
#define ptyc_export __dllexport
#else
#define ptyc_export
#endif

/* ptyc_import */
#if	defined(__dllimport)
#define ptyc_import __dllimport
#else
#define ptyc_import
#endif

/* protected visibility */
#if	defined(__attr_protected__)
#define ptyc_protected __attr_protected__
#else
#define ptyc_protected
#endif

/* ptyc_api */
#ifndef PTYC_APP
#if     defined (PTYC_EXPORT)
#define ptyc_api ptyc_export
#elif   defined (PTYC_IMPORT)
#define ptyc_api ptyc_import
#elif   defined (PTYC_STATIC)
#define ptyc_api ptyc_protected
#else
#define ptyc_api
#endif
#else
#define ptyc_api
#endif

#endif