Merge commit 'origin/master' into gallium-msaa
[mesa.git] / src / gallium / auxiliary / util / u_dl.h
index 018b38543b039658f7eaf0387ce81c058851fdf1..2853b447c61070f9a3a7d012af0ca45f62e38c15 100644 (file)
 #define U_DL_H_
 
 
+#include "pipe/p_config.h"
+
+
+#if defined(PIPE_OS_WINDOWS)
+#  define UTIL_DL_EXT ".dll"
+#elif defined(PIPE_OS_APPLE)
+#  define UTIL_DL_EXT ".dylib"
+#else
+#  define UTIL_DL_EXT ".so"
+#endif
+
+
 struct util_dl_library;
 
 
@@ -58,4 +70,11 @@ void
 util_dl_close(struct util_dl_library *library);
 
 
+/**
+ * Return most recent error message.
+ */
+const char *
+util_dl_error(void);
+
+
 #endif /* U_DL_H_ */