From: Andreas Ericsson Date: Wed, 21 Nov 2007 15:09:15 GMT Subject: Re: [WIP PATCH] Add 'git fast-export', the sister of 'git fast-import' Message-ID: <47444A1B.4000907@op5.se> In-Reply-To: Johannes Schindelin wrote: > > P.S.: I'll try to read up on ptrint_t, as suggested by Shawn. I can't find a reference to ptrint_t anywhere on either my system, and the 10 first hits on Google finds it on typedef lines, most commonly like this: typedef unsigned long ptrint_t; I think ptrdiff_t is more portable. Here's the relevant entry about ptrdiff_t from /usr/include/obstack.h on my system: ---%<---%<---%<--- /* We need the type of a pointer subtraction. If __PTRDIFF_TYPE__ is defined, as with GNU C, use that; that way we don't pollute the namespace with 's symbols. Otherwise, include and use ptrdiff_t. */ #ifdef __PTRDIFF_TYPE__ # define PTR_INT_TYPE __PTRDIFF_TYPE__ #else # include # define PTR_INT_TYPE ptrdiff_t #endif ---%<---%<---%<--- MySQL seems to have botched that one though. It has this instead: typedef long my_ptrdiff_t; -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231