Browse Source

Factor DLL API macros into its own shared header for tests.

pull/232/head
triton 11 years ago
parent
commit
341140b929
  1. 8
      tests/Basic/Basic.h
  2. 6
      tests/CLITemp/CLITemp.h
  3. 6
      tests/CSharpTemp/CSharpTemp.h
  4. 7
      tests/STL/STL.h
  5. 9
      tests/Tests.h
  6. 6
      tests/UTF16/UTF16.h
  7. 6
      tests/VTables/VTables.h

8
tests/Basic/Basic.h

@ -1,10 +1,4 @@ @@ -1,10 +1,4 @@
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#else
#define DLL_API
#endif
#define CS_OUT
#include "../Tests.h"
class DLL_API Foo
{

6
tests/CLITemp/CLITemp.h

@ -1,8 +1,4 @@ @@ -1,8 +1,4 @@
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#else
#define DLL_API
#endif
#include "../Tests.h"
// Tests for C++ types
struct DLL_API Types

6
tests/CSharpTemp/CSharpTemp.h

@ -1,8 +1,4 @@ @@ -1,8 +1,4 @@
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#else
#define DLL_API
#endif
#include "../Tests.h"
class DLL_API Foo
{

7
tests/STL/STL.h

@ -1,9 +1,4 @@ @@ -1,9 +1,4 @@
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#else
#define DLL_API
#endif
#include "../Tests.h"
#include <vector>
struct DLL_API TestVectors

9
tests/Tests.h

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
#pragma once
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#else
#define DLL_API
#endif
#define CS_OUT

6
tests/UTF16/UTF16.h

@ -1,8 +1,4 @@ @@ -1,8 +1,4 @@
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#else
#define DLL_API
#endif
#include "../Tests.h"
class DLL_API Foo
{

6
tests/VTables/VTables.h

@ -1,8 +1,4 @@ @@ -1,8 +1,4 @@
#if defined(_MSC_VER)
#define DLL_API __declspec(dllexport)
#else
#define DLL_API
#endif
#include "../Tests.h"
class DLL_API Foo
{

Loading…
Cancel
Save