diff options
author | benoit-germain <bnt.germain@gmail.com> | 2012-08-25 10:16:03 +0300 |
---|---|---|
committer | benoit-germain <bnt.germain@gmail.com> | 2012-08-25 10:16:03 +0300 |
commit | 7a0df722b126fd35af484769a9eb8c1425f687b3 (patch) | |
tree | add799587ac03e07e2ad2a59eeac2abebd958f95 /src | |
parent | f0b1c6d629464c0a59ac78382d86f434e74c2162 (diff) | |
download | lanes-7a0df722b126fd35af484769a9eb8c1425f687b3.tar.gz lanes-7a0df722b126fd35af484769a9eb8c1425f687b3.tar.bz2 lanes-7a0df722b126fd35af484769a9eb8c1425f687b3.zip |
Fix ubuntu compilation errors
* missing inclusion of <stdint.h>
* use __min instead of min
Diffstat (limited to 'src')
-rw-r--r-- | src/keeper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keeper.c b/src/keeper.c index 86c69e2..42541cd 100644 --- a/src/keeper.c +++ b/src/keeper.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <string.h> | 41 | #include <string.h> |
42 | #include <stdio.h> | 42 | #include <stdio.h> |
43 | #include <stdlib.h> | 43 | #include <stdlib.h> |
44 | #include <stdint.h> | ||
44 | #include <ctype.h> | 45 | #include <ctype.h> |
45 | 46 | ||
46 | #include "lua.h" | 47 | #include "lua.h" |
@@ -268,7 +269,7 @@ int keepercall_receive_batched( lua_State* L) | |||
268 | fifo = prepare_fifo_access( L, 1); // fifo | 269 | fifo = prepare_fifo_access( L, 1); // fifo |
269 | if( fifo && fifo->count >= min_count) | 270 | if( fifo && fifo->count >= min_count) |
270 | { | 271 | { |
271 | fifo_pop( L, fifo, min( max_count, fifo->count)); // fifo ... | 272 | fifo_pop( L, fifo, __min( max_count, fifo->count)); // fifo ... |
272 | } | 273 | } |
273 | return lua_gettop( L) - 1; | 274 | return lua_gettop( L) - 1; |
274 | } | 275 | } |