diff options
author | Matthew A. Schnoor (@Intel) <matthew.schnoor@intel.com> | 2023-03-15 07:48:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 07:48:31 -0700 |
commit | 370b5944c046bab043dd8b133727b2135af7747a (patch) | |
tree | 52cd06eb04ec483fc065dfa038cbcde1c00fb626 | |
parent | 9e987325e061bfd0e8bd3add2cb693a5ca4a39ad (diff) | |
parent | 366006fba34d9b164932c0775bdbaa0ac90617f5 (diff) | |
download | mipisyst-1.1+edk2.zip mipisyst-1.1+edk2.tar.gz mipisyst-1.1+edk2.tar.bz2 |
Merge pull request #6 from gguo11837463/mipi_systv1.1+edk2
Remove CRT dependency and add clang compiler compatible
-rw-r--r-- | library/include/mipi_syst/compiler.h | 4 | ||||
-rw-r--r-- | library/src/mipi_syst_init.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/library/include/mipi_syst/compiler.h b/library/include/mipi_syst/compiler.h index 822642e..b73512c 100644 --- a/library/include/mipi_syst/compiler.h +++ b/library/include/mipi_syst/compiler.h @@ -45,6 +45,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. extern "C" { #endif +#if defined(__clang__) +#undef _WIN32 +#endif + #if defined(_WIN32) /* MSVC Compiler section */ /* basic integer types diff --git a/library/src/mipi_syst_init.c b/library/src/mipi_syst_init.c index 9c213a6..59d2c45 100644 --- a/library/src/mipi_syst_init.c +++ b/library/src/mipi_syst_init.c @@ -36,7 +36,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * Norbert Schulz (Intel Corporation) - Initial API and implementation */ -#include <stdlib.h> #include "mipi_syst.h" #include "mipi_syst/message.h" |