summaryrefslogtreecommitdiff
path: root/drivers/mxc/amd-gpu/os/kernel/include/kos_libapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mxc/amd-gpu/os/kernel/include/kos_libapi.h')
-rw-r--r--drivers/mxc/amd-gpu/os/kernel/include/kos_libapi.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/mxc/amd-gpu/os/kernel/include/kos_libapi.h b/drivers/mxc/amd-gpu/os/kernel/include/kos_libapi.h
index 6042b25765f7..a02c396c22a9 100644
--- a/drivers/mxc/amd-gpu/os/kernel/include/kos_libapi.h
+++ b/drivers/mxc/amd-gpu/os/kernel/include/kos_libapi.h
@@ -57,9 +57,9 @@ extern "C" {
// KOS lib entrypoints
//////////////////////////////////////////////////////////////////////////////
#ifdef __KOSLIB_EXPORTS
-#define KOS_API extern //KOS_DLLEXPORT
+#define KOS_API KOS_DLLEXPORT
#else
-#define KOS_API extern //KOS_DLLIMPORT
+#define KOS_API KOS_DLLIMPORT
#endif // __KOSLIB_EXPORTS
//////////////////////////////////////////////////////////////////////////////
@@ -79,16 +79,12 @@ KOS_API void kos_assert_hook(const char* file, int line, int
//#include <assert.h>
//#define KOS_ASSERT(expression) assert(expression)
#define KOS_ASSERT(expression) /**/
-#elif defined(_LINUX)
-#include <assert.h>
-#define KOS_ASSERT(expression) //BUG_ON(!(expression));
-#error KOS_ASSERT DEFINED, FINALLY!
#elif defined(__ARM__)
#define KOS_ASSERT(expression)
-#endif // _WIN32 _WIN32_WCE
-
#elif defined(_LINUX)
- #define KOS_ASSERT(expression) //kos_assert_hook(__FILE__, __LINE__, (int)(expression));
+#define KOS_ASSERT(expression) //kos_assert_hook(__FILE__, __LINE__, (int)(expression))
+#endif
+
#else
#define KOS_ASSERT(expression)
@@ -381,7 +377,7 @@ KOS_API unsigned int kos_strtoul(const char* nptr, char** endptr, int base);
* \param void* name Name string for the new mutex.
* \return Returns a handle to the mutex.
*//*-------------------------------------------------------------------*/
-KOS_API oshandle_t kos_mutex_create(char* name);
+KOS_API oshandle_t kos_mutex_create(const char* name);
/*-------------------------------------------------------------------*//*!
* \external
* \brief Get a handle to an already existing mutex.
@@ -390,7 +386,7 @@ KOS_API oshandle_t kos_mutex_create(char* name);
* \param void* name Name string for the new mutex.
* \return Returns a handle to the mutex.
*//*-------------------------------------------------------------------*/
-KOS_API oshandle_t kos_mutex_open(char* name);
+KOS_API oshandle_t kos_mutex_open(const char* name);
/*-------------------------------------------------------------------*//*!
* \external
* \brief Free the given mutex.