fehler109
[libfirm] / ir / be / beschedrss.c
index 4657f9a..8cc96d6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -59,8 +59,8 @@
 #include "besched_t.h"
 #include "beirg_t.h"
 
-#include <libcore/lc_opts.h>
-#include <libcore/lc_opts_enum.h>
+#include "lc_opts.h"
+#include "lc_opts_enum.h"
 
 
 #define ARR_LEN_SAFE(arr) ((arr) != NULL ? ARR_LEN((arr)) : 0)
@@ -300,7 +300,7 @@ static const ir_node **build_sorted_array_from_list(plist_t *irn_list, struct ob
        plist_element_t *el;
        int             i   = 0;
        int             len = plist_count(irn_list);
-       ir_node         **arr = (ir_node **) NEW_ARR_D(ir_node *, obst, len);
+       const ir_node   **arr = (const ir_node**)NEW_ARR_D(ir_node*, obst, len);
 
        /* copy the list into the array */
        foreach_plist(irn_list, el) {
@@ -308,7 +308,8 @@ static const ir_node **build_sorted_array_from_list(plist_t *irn_list, struct ob
        }
 
        /* sort the array by node index */
-       qsort(arr, len, sizeof(arr[0]), cmp_irn_idx);
+       /* HACK cast for MSVC */
+       qsort((void*)arr, len, sizeof(arr[0]), cmp_irn_idx);
 
        return arr;
 }