util: Define common dynamic library extensions.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 23 Dec 2009 13:23:39 +0000 (13:23 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 23 Dec 2009 16:38:50 +0000 (16:38 +0000)
src/gallium/auxiliary/util/u_dl.h

index 018b38543b039658f7eaf0387ce81c058851fdf1..85296c58af640d6d44386e380207d25d1c8f2dcf 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;