Fixed problem with PRI macros.

Thanks Gregor!
This commit is contained in:
Seth Hall 2011-02-08 20:28:56 -05:00
parent 275c6e64cc
commit b54445b725
3 changed files with 7 additions and 4 deletions

View file

@ -159,7 +159,6 @@
#include <signal.h>
#include <strings.h>
#include <stdarg.h>
#include <inttypes.h>
#include "config.h"
#ifdef TIME_WITH_SYS_TIME

View file

@ -6,7 +6,6 @@
#include "SMB.h"
#include "smb_pac.h"
#include "Val.h"
#include "inttypes.h"
namespace {
const bool DEBUG_smb_ipc = true;
@ -167,8 +166,7 @@ void SMB_Session::Deliver(int is_orig, int len, const u_char* data)
const u_char* tmp = data_start + next;
if ( data_start + next < data + body.length() )
{
//Weird(fmt("ANDX buffer overlapping: next = %d, buffer_end = %" PRId32, next, data + body.length() - data_start));
printf("ANDX buffer overlapping: next = %" PRId64 ", buffer_end = %" PRId32 " ", next, data + body.length() - data_start);
Weird(fmt("ANDX buffer overlapping: next = %d, buffer_end = %" PRIdPTR, next, data + body.length() - data_start));
break;
}

View file

@ -11,6 +11,12 @@
#include <stdarg.h>
#include "config.h"
#define _ISOC99_SOURCE
#define __STDC_LIMIT_MACROS
#define __STDC_CONSTANT_MACROS
#define __STDC_FORMAT_MACROS
#include "inttypes.h"
#if __STDC__
#define myattribute __attribute__
#else