Skip to content

Commit

Permalink
Fix - on macOS disable iPhone check for LabVIEW (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwinkel-dev committed Sep 20, 2023
1 parent 02bc525 commit d6df3eb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/mdsobjects.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#ifndef MDSOBJECTS_H
#define MDSOBJECTS_H

// Prevents errors when using Clang on macOS with LabVIEW
#ifdef __APPLE__
#ifndef TARGET_OS_IPHONE
#define TARGET_OS_IPHONE 0
#endif
#endif

#include <mdsplus/mdsconfig.h>

#include <algorithm>
Expand Down
8 changes: 8 additions & 0 deletions mdsobjects/labview/lv.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Josh Stillerman 10/19/12
*/

// Prevents errors when using Clang on macOS with LabVIEW
#ifdef __APPLE__
#ifndef TARGET_OS_IPHONE
#define TARGET_OS_IPHONE 0
#endif
#endif

#include <extcode.h>
#include <fundtypes.h>
#include <libroutines.h>
Expand Down

0 comments on commit d6df3eb

Please sign in to comment.