Implement the same PLT reduction technique used in GTK+:
[platform/upstream/glib.git] / glib / gqsort.c
index 5dcb4bf..ac45e8b 100644 (file)
  * at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#include "config.h"
+
 #include <string.h>
 
+#include "galias.h"
 #include "glib.h"
 
+
 /* Byte-wise swap two items of size SIZE. */
 #define SWAP(a, b, size)                                                     \
   do                                                                         \
@@ -108,7 +112,7 @@ stack_node;
 void
 g_qsort_with_data (gconstpointer    pbase,
                   gint             total_elems,
-                  size_t           size,
+                  gsize            size,
                   GCompareDataFunc compare_func,
                   gpointer         user_data)
 {