Adds gradle task to fix NI libraries whenever new ones are added. (#325)

Generates genlinks, and modifies headers to make them self contained
This commit is contained in:
Thad House
2016-11-04 15:17:17 -07:00
committed by Peter Johnson
parent 81212d80c6
commit 861726cefa
26 changed files with 155 additions and 44 deletions

View File

@@ -14,8 +14,8 @@
#ifndef __FRC_COMM_H__
#define __FRC_COMM_H__
#ifdef WIN32
# include <vxWorks_compat.h>
#ifdef _WIN32
# include <windows.h>
#ifdef USE_THRIFT
# define EXPORT_FUNC
# else
@@ -33,7 +33,7 @@
#define ERR_FRCSystem_NetCommNotResponding -44049
#define ERR_FRCSystem_NoDSConnection -44018
#ifdef WIN32
#ifdef _WIN32
# define __DEPRECATED__ __declspec(deprecated)
#else
# define __DEPRECATED__ __attribute__((__deprecated__))
@@ -129,7 +129,7 @@ extern "C" {
int EXPORT_FUNC FRC_NetworkCommunication_sendError(int isError, int32_t errorCode, int isLVCode,
const char *details, const char *location, const char *callStack);
#ifdef WIN32
#ifdef _WIN32
void EXPORT_FUNC setNewDataSem(HANDLE);
#elif defined (__vxworks)
void EXPORT_FUNC setNewDataSem(SEM_ID);

View File

@@ -2,7 +2,7 @@
#ifndef __LoadOut_h__
#define __LoadOut_h__
#ifdef WIN32
#ifdef _WIN32
#include <vxWorks_compat.h>
#define EXPORT_FUNC __declspec(dllexport) __cdecl
#elif defined (__vxworks)

View File

@@ -2,7 +2,7 @@
#ifndef __UsageReporting_h__
#define __UsageReporting_h__
#ifdef WIN32
#ifdef _WIN32
#include <stdint.h>
#define EXPORT_FUNC __declspec(dllexport) __cdecl
#elif defined (__vxworks)