The changes to IdCompilerDefines.inc in SVN revs 5500-5505 broke compiling Indy for 64-bit OS X under Free Pascal. Prior to those changes, THANDLE was set to THANDLE_32 for both 32-bit and 64-bit OS X builds, but Embarcadero's patch and subsequent changes switched it to THANDLE_CPUBITS. Compiling IdGlobal.pas with Free Pascal 3.3.1 now fails in InterlockedExchangeTHandle, line 4487 with the error "Typecast has different size (4 -> 8) in assignment" on the VTarget cast.
EDIT: Since it dropped the "$ELSE" clause, it looks like it's also undefined for any non-Apple BSD variants, but we don't compile for those so I'm not sure.
EDIT: Since it dropped the "$ELSE" clause, it looks like it's also undefined for any non-Apple BSD variants, but we don't compile for those so I'm not sure.