File: api.h

package info (click to toggle)
pd-cyclone 0.9.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,860 kB
  • sloc: ansic: 38,656; makefile: 318; tcl: 81
file content (36 lines) | stat: -rw-r--r-- 1,156 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Copyright (c) 2018 Diego Barrios Romero.
 * For information on usage and redistribution, and for a DISCLAIMER OF ALL
 * WARRANTIES, see the file, "LICENSE.txt," in this distribution.  */

/* API symbol definitions.
 * Symbols that are part of the library interface need to be exported
 * so that these can be found by the loaders.
 * i.e. *_setup functions need to be exported so that pure-data finds them
 * at load time.
 */

#ifndef __CYCLONE_API_H__
#define __CYCLONE_API_H__

// For use in the cyclone main library
#if defined(_MSC_VER)
// Export the symbol to the DLL interface
#  define CYCLONE_API __declspec(dllexport)
#else
// On UNIX set this to visibility default if you change the default symbol
// visibility to hidden.
#  define CYCLONE_API
#endif

// For use on cyclone objects
#if defined(_MSC_VER) && !defined(CYCLONE_SINGLE_LIBRARY)
// Export the symbol to the DLL interface
#  define CYCLONE_OBJ_API __declspec(dllexport)
#else
// On UNIX set this to visibility default if you change the default symbol
// visibility to hidden and you are not building a single library.
#  define CYCLONE_OBJ_API
#endif


#endif // __CYCLONE_API_H__