Ticket #667: 0004-Use-inttypes.h-instead-of-stdint.h.patch

File 0004-Use-inttypes.h-instead-of-stdint.h.patch, 1.2 KB (added by Dagobert Michelsen <dam@…>, at 2010-08-06T15:45:37Z)
  • lib/md5.h

    From 389ee34d25b02a9ad2df1da49d9f6035766f3c45 Mon Sep 17 00:00:00 2001
    From: Dagobert Michelsen <dam@opencsw.org>
    Date: Fri, 6 Aug 2010 15:34:40 +0200
    Subject: [PATCH 4/6] Use inttypes.h instead of stdint.h
    
    ---
     lib/md5.h          |    4 ++++
     lib/sha1.h         |    4 ++++
     protocols/nogaim.h |    6 ++++++
     3 files changed, 14 insertions(+), 0 deletions(-)
    
    diff --git a/lib/md5.h b/lib/md5.h
    index 094507b..3ba2858 100644
    a b  
    2626
    2727#include <sys/types.h>
    2828#include <gmodule.h>
     29#if(__sun)
     30#include <inttypes.h>
     31#else
    2932#include <stdint.h>
     33#endif
    3034
    3135typedef uint8_t md5_byte_t;
    3236typedef struct MD5Context {
  • lib/sha1.h

    diff --git a/lib/sha1.h b/lib/sha1.h
    index 368c066..4ef8ac9 100644
    a b  
    2323#ifndef _SHA1_H_
    2424#define _SHA1_H_
    2525
     26#if(__sun)
     27#include <inttypes.h>
     28#else
    2629#include <stdint.h>
     30#endif
    2731#include <gmodule.h>
    2832
    2933#ifndef _SHA_enum_
  • protocols/nogaim.h

    diff --git a/protocols/nogaim.h b/protocols/nogaim.h
    index 48a8041..27ef511 100644
    a b  
    3838#ifndef _NOGAIM_H
    3939#define _NOGAIM_H
    4040
     41#if(__sun)
     42#include <inttypes.h>
     43#else
    4144#include <stdint.h>
     45#endif
     46
     47#include "lib/events.h"
    4248
    4349#include "bitlbee.h"
    4450#include "account.h"