Added SILC HTTP Server API
[runtime.git] / lib / silchttp / silchttpphp.c
index d1cb24e09d968ef098c3c388d6b2dd651eeb8aa6..2a5a28d684283bfc82e032178be1660339dc3685 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-#include "silc.h"
+#include "silcruntime.h"
 #include "silchttpphp.h"
 
 /* Executes PHP code and returns result */
@@ -81,11 +81,11 @@ SilcBuffer silc_http_php_file(const char *filename)
     len = fread(tmp, 1, sizeof(tmp), fd);
     if (len < 0) {
       silc_buffer_free(ret);
-#ifdef SILC_WIN32\r
+#ifdef SILC_WIN32
       _pclose(fd);
-#else\r
-      pclose(fd);\r
-#endif /* SILC_WIN32 */\r
+#else
+      pclose(fd);
+#endif /* SILC_WIN32 */
       return NULL;
     }
 
@@ -93,11 +93,11 @@ SilcBuffer silc_http_php_file(const char *filename)
       if (!ret) {
        ret = silc_buffer_alloc(0);
        if (!ret) {
-#ifdef SILC_WIN32\r
-      _pclose(fd);\r
-#else\r
-      pclose(fd);\r
-#endif /* SILC_WIN32 */\r
+#ifdef SILC_WIN32
+      _pclose(fd);
+#else
+      pclose(fd);
+#endif /* SILC_WIN32 */
          return NULL;
        }
       }