Skip to content

Commit

Permalink
Fix build on linux (#106)
Browse files Browse the repository at this point in the history
- add Ubuntu to CI/CD
  • Loading branch information
ales-tsurko authored May 23, 2020
1 parent 315ce9b commit 1c63d27
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, macOS-latest ]
os: [ windows-latest, macOS-latest, ubuntu-latest ]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest, macOS-latest ]
os: [ windows-latest, macOS-latest, ubuntu-latest ]

steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions src/cxx/fp_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define FP_DEF_H

#include "math.h"
#ifndef __APPLE__
#if !defined (__APPLE__) && !defined (__linux__)
#include "mmsystem.h"
#endif

Expand Down Expand Up @@ -47,7 +47,7 @@ typedef struct
// extended wav format
typedef struct
{
#ifndef __APPLE__
#if !defined (__APPLE__) && !defined (__linux__)
WAVEFORMATEX WaveFormatEx;
#endif
union
Expand All @@ -56,7 +56,7 @@ typedef struct
{
unsigned short wValidBitsPerSample; // bits of precision
unsigned long dwChannelMask; // which channels are present in stream
#ifndef __APPLE__
#if !defined (__APPLE__) && !defined (__linux__)
GUID SubFormat;
#endif
} stream;
Expand All @@ -83,4 +83,4 @@ typedef struct
} TTimeSigInfo, *PTimeSigInfo;


#endif // FP_DEF_H
#endif // FP_DEF_H
4 changes: 2 additions & 2 deletions src/cxx/fp_plugclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#endif
#include "fp_plugclass.h"

#ifdef __APPLE__
#include <strings.h>
#if defined (__APPLE__) || defined (__linux__)
#include <string.h>
#endif

// destroy the object
Expand Down
6 changes: 3 additions & 3 deletions src/cxx/fp_plugclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ LockMix_Shared / UnlockMix_Shared
#ifndef FP_PLUGCLASS_H
#define FP_PLUGCLASS_H

#ifdef __APPLE__
#if defined (__APPLE__) || defined (__linux__)
#include <stdint.h>
#else
#include <objidl.h>
#endif
#include "fp_def.h"

#ifdef __APPLE__
#if defined (__APPLE__) || defined (__linux__)
#define _stdcall
#define __stdcall
#define BOOL int
Expand All @@ -47,7 +47,7 @@ typedef long long LARGE_INTEGER;
#pragma pack(4)


#ifdef __APPLE__
#if defined (__APPLE__) || defined (__linux__)
#define STDMETHODCALLTYPE __stdcall
class IStream
{
Expand Down

0 comments on commit 1c63d27

Please sign in to comment.