File: c-shared-util.h

package info (click to toggle)
govarnam 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 592 kB
  • sloc: ansic: 340; sh: 182; makefile: 115; sql: 42
file content (23 lines) | stat: -rw-r--r-- 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __UTIL_H__
#define __UTIL_H__

#include <stddef.h>

#if defined (_WIN32)
  #if defined(varnam_EXPORTS)
    #define VARNAM_EXPORT __declspec(dllexport)
  #else
    #define VARNAM_EXPORT __declspec(dllimport)
  #endif /* varnam_EXPORTS */
#else /* defined (_WIN32) */
 #define VARNAM_EXPORT
#endif

#ifndef __cplusplus
#if __GNUC__ < 15
  #define false 0
  #define true  1
#endif
#endif

#endif /* __UTIL_H__ */