]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
added qvalues to metastats. fixed bug with chimera.uchime location. fixed windows...
[mothur.git] / mothur.h
index 53074eb1e146f28af23a87e6888d57bfaa5184fa..3b7c4599329aede91be3f6325d27df1accf77c03 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -72,6 +72,8 @@
        #include <windows.h>
        #include <psapi.h>
        #include <direct.h>
+       #include <tchar.h>
+
 #endif
 
 using namespace std;
@@ -83,6 +85,7 @@ using namespace std;
 #define isnan(x) ((x) != (x))
 #define isinf(x) (fabs(x) == std::numeric_limits<double>::infinity())
 
+
 typedef unsigned long ull;
 
 struct IntNode {
@@ -186,7 +189,8 @@ void convert(const string& s, T& x, bool failIfLeftoverChars = true){
                        throw BadConversion(s);
        
 }
-
+//**********************************************************************************************************************
+template <typename T> int sgn(T val){ return (val > T(0)) - (val < T(0)); }
 //**********************************************************************************************************************
 
 template<typename T>