]> git.donarmstrong.com Git - samtools.git/blobdiff - ksort.h
for WIN32 compatibility
[samtools.git] / ksort.h
diff --git a/ksort.h b/ksort.h
index fa850ab0762a9225bae5b3bcad6739a3bb6a3c27..b8b62f189c557a8aa77fbdfbb93e7dafb3acba14 100644 (file)
--- a/ksort.h
+++ b/ksort.h
 #include <stdlib.h>
 #include <string.h>
 
+#ifdef _WIN32
+#define drand48() ((double)rand() / RAND_MAX)
+#endif
+
 typedef struct {
        void *left, *right;
        int depth;