packages feed

libnvvm-1.0.0: cbits/stubs.h

#ifndef C_STUBS_H
#define C_STUBS_H

/*
 * This part of the code is from https://github.com/tmcdonell/cuda, which
 * is under BSD3 (https://github.com/tmcdonell/cuda/blob/master/LICENSE).
 */


/*
 * We need to work around some shortcomings in the C parser of c2hs by disabling advanced attributes etc on Apple platforms.
 */
#ifdef __APPLE__
#define _ANSI_SOURCE
#define __AVAILABILITY__
#define __OSX_AVAILABLE_STARTING(_mac, _iphone)
#define __OSX_AVAILABLE_BUT_DEPRECATED(_macIntro, _macDep, _iphoneIntro, _iphoneDep)
#endif


/*
 * Standard NVVM include. Make sure this comes after the above defines.
 */
#include <nvvm.h>

#endif /* C_STUBS_H */