Browse Source

Support C++

tags/v1.8.0
Jon Beniston 3 years ago
parent
commit
ce63316fb2
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/apt.h

+ 8
- 0
src/apt.h View File

@@ -21,6 +21,10 @@
#ifndef APT_H
#define APT_H

#ifdef __cplusplus
extern "C" {
#endif

#if defined (__GNUC__) && (__GNUC__ >= 4)
#define APT_API __attribute__((visibility("default")))
#elif defined (_MSC_VER)
@@ -70,4 +74,8 @@ apt_rgb_t APT_API apt_RGBcomposite(apt_rgb_t top, float top_a, apt_rgb_t bottom,
extern char APT_API apt_TempPalette[256*3];
extern char APT_API apt_PrecipPalette[58*3];

#ifdef __cplusplus
}
#endif

#endif

Loading…
Cancel
Save