removed dependency to stdint.h in stack header

Fri, 26 Feb 2016 16:22:20 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 26 Feb 2016 16:22:20 +0100
changeset 217
e056e4e0b08e
parent 216
dee5a88c4db7
child 218
b20d6088795c

removed dependency to stdint.h in stack header

ucx/stack.h file | annotate | diff | comparison | revisions
--- a/ucx/stack.h	Fri Feb 26 16:00:18 2016 +0100
+++ b/ucx/stack.h	Fri Feb 26 16:22:20 2016 +0100
@@ -39,7 +39,6 @@
 #define	UCX_STACK_H
 
 #include "ucx.h"
-#include <stdint.h>
 #include "allocator.h"
 
 #ifdef	__cplusplus
@@ -179,7 +178,7 @@
  * @see ucx_stack_free
  * @see ucx_stack_popn
  */
-#define ucx_stack_pop(stack, dest) ucx_stack_popn(stack, dest, SIZE_MAX)
+#define ucx_stack_pop(stack, dest) ucx_stack_popn(stack, dest, (size_t)-1)
 
 /**
  * Removes the top most element from the stack and copies the content to <code>

mercurial