]> CRI, Mines Paris - PSL - Faustine.git/blobdiff - interpretor/preprocessor/faust-0.9.47mr3/compiler/parser/enrobage.cpp
Add 21 primitives to Faustine.
[Faustine.git] / interpretor / preprocessor / faust-0.9.47mr3 / compiler / parser / enrobage.cpp
index 2d1599bb997ae30833b552aee296b68675ba8c55..59e6fb546791f235021f16833afb9a7d16f8881c 100644 (file)
@@ -406,6 +406,23 @@ FILE* fopensearch(const char* filename, string& fullpath)
     if ((f = fopenat(fullpath, gFaustSuperSuperDirectory, "architecture", filename))) { 
        return f;
     }
+
+       /* Faustine directories (Haisheng WANG 09/2013) */
+
+#ifdef INSTALL_PREFIX
+    if ((f = fopenat(fullpath, INSTALL_PREFIX "/lib/faustine", filename))) { 
+       return f;
+    }
+#endif
+    if ((f = fopenat(fullpath, "/usr/local/lib/faustine", filename))) { 
+       return f;
+    }
+    if ((f = fopenat(fullpath, "/usr/lib/faustine", filename))) { 
+       return f;
+    }
+
+       /* End of Faustine directories */
+
 #ifdef INSTALL_PREFIX
     if ((f = fopenat(fullpath, INSTALL_PREFIX "/lib/faust", filename))) { 
        return f;