summaryrefslogtreecommitdiffhomepage
path: root/dev/LibSCI
diff options
context:
space:
mode:
Diffstat (limited to 'dev/LibSCI')
-rw-r--r--dev/LibSCI/GPU.h4
-rw-r--r--dev/LibSCI/Macros.h8
-rw-r--r--dev/LibSCI/SCI.h2
3 files changed, 8 insertions, 6 deletions
diff --git a/dev/LibSCI/GPU.h b/dev/LibSCI/GPU.h
index 6ee937f5..fee621e6 100644
--- a/dev/LibSCI/GPU.h
+++ b/dev/LibSCI/GPU.h
@@ -10,7 +10,7 @@ Purpose: GFX System Calls.
#ifndef SCIKIT_GPU_H
#define SCIKIT_GPU_H
-#include <SCI.h>
+#include <LibSCI/SCI.h>
struct GPUCmdBuffer;
@@ -31,7 +31,7 @@ struct GPUCmdBuffer final
Bool isGPGPUData()
{
- return !this->BufferFirst && this->IsGPGPUData;
+ return this->isValid() && !this->BufferFirst && this->IsGPGPUData;
}
Bool isValid()
diff --git a/dev/LibSCI/Macros.h b/dev/LibSCI/Macros.h
index 62d522c9..e57df6ee 100644
--- a/dev/LibSCI/Macros.h
+++ b/dev/LibSCI/Macros.h
@@ -14,7 +14,7 @@ Purpose: LibSCI Macros header.
/// @brief Macros and core types.
/***********************************************************************************/
-#include <CompilerHint.h>
+#include <LibSCI/CompilerHint.h>
#define ATTRIBUTE(X) __attribute__((X))
@@ -29,6 +29,8 @@ Purpose: LibSCI Macros header.
#define FILE_MAX_LEN 256
typedef bool Bool;
+typedef bool BOOL;
+typedef bool Boolean;
typedef void Void;
typedef __UINT64_TYPE__ UInt64;
@@ -57,10 +59,10 @@ typedef SCIObject SocketObject;
#ifdef __cplusplus
typedef decltype(nullptr) nullPtr;
-typedef decltype(nullptr) NullPtr;
+typedef nullPtr NullPtr;
#endif
-EXTERN_C void _rtl_assert(Bool expr, const Char* origin);
+IMPORT_C void _rtl_assert(Bool expr, const Char* origin);
#define MUST_PASS(X) _rtl_assert(X, __FILE__)
diff --git a/dev/LibSCI/SCI.h b/dev/LibSCI/SCI.h
index 19bd1aa1..ca77c515 100644
--- a/dev/LibSCI/SCI.h
+++ b/dev/LibSCI/SCI.h
@@ -10,7 +10,7 @@ Purpose: System Calls.
#ifndef SCIKIT_FOUNDATION_H
#define SCIKIT_FOUNDATION_H
-#include <Macros.h>
+#include <LibSCI/Macros.h>
// ------------------------------------------------------------------------------------------ //
/// @brief Dynamic Loader API.