/* === S T A R T =========================================================== */
-#ifndef __HANDLE__
-#define __HANDLE__
+#ifndef __ETL__HANDLE__
+#define __ETL__HANDLE__
/* === H E A D E R S ======================================================= */
#include "etl_config.h"
// include the next line in an attempt to increase stability
-#define ETL_LOCK_REFCOUNTS
+// it seems to make things much *less* stable on MS Windows
+#ifndef _WIN32
+#ifdef __ETL_HAS_LIBPTHREAD
+#define __ETL_LOCK_REFCOUNTS
+#endif
+#endif
-#ifdef ETL_LOCK_REFCOUNTS
+#ifdef __ETL_LOCK_REFCOUNTS
# include "mutex"
#endif