Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix BSD
  • Loading branch information
MichalStrehovsky committed Jun 29, 2023
commit ac9feb872e9a03bff401d292415c5d9be202e21b
1 change: 1 addition & 0 deletions src/native/minipal/cpufeatures.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>

#include "cpufeatures.h"

Expand Down
4 changes: 2 additions & 2 deletions src/native/minipal/cpufeatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ enum ARM64IntrinsicConstants
ARM64IntrinsicConstants_VectorT128 = 0x0200,
};

#if !defined(__cplusplus) && !defined(static_assert)
#define static_assert _Static_assert
#if !defined(__cplusplus)
#include <assert.h>
#endif

// Bit position for the ARM64IntrinsicConstants_Atomics flags, to be used with tbz / tbnz instructions
Expand Down
4 changes: 2 additions & 2 deletions src/native/minipal/minipalconfig.h.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _MINIPAL_CONFIG_H_INCLUDED
#define _MINIPAL_CONFIG_H_INCLUDED 1
#ifndef HAVE_MINIPAL_MINIPALCONFIG_H
#define HAVE_MINIPAL_MINIPALCONFIG_H

#cmakedefine01 HAVE_AUXV_HWCAP_H
#cmakedefine01 HAVE_SYSCTLBYNAME
Expand Down