Ticket #21530: patch_setup_h

File patch_setup_h, 460 bytes (added by Veence (Vincent), 15 years ago)

patch #2 for wxwidgets-devel

Line 
1#!/bin/sh
2
3echo Patching $1
4
5cat $1 | \
6sed 's/#define *SIZEOF_VOID_P .*/\
7#ifdef __LP64__\
8  #define SIZEOF_VOID_P 8\
9#else\
10  #define SIZEOF_VOID_P 4\
11#endif/' |\
12sed 's/#define *SIZEOF_LONG .*/\
13#ifdef __LP64__\
14  #define SIZEOF_LONG   8\
15#else\
16  #define SIZEOF_LONG 4\
17#endif/' |\
18sed 's/#define *SIZEOF_SIZE_T .*/\
19#ifdef __LP64__\
20  #define SIZEOF_SIZE_T 8\
21#else\
22  #define SIZEOF_SIZE_T 4\
23#endif/' > /private/tmp/$$.tmp
24rm $1
25mv /private/tmp/$$.tmp $1