libarchive/libarchive-test — Issue #1: 1 - #undef'ing archive types at end of archive.h breaks callbacks 
Author: amejia1
Created: 2012-01-20 19:22:36+00:00
State: open

What steps will reproduce the problem?
1. Implement a read callback in 2.5.5:

__LA_SSIZE_T LibArchiveReadCallback(struct archive* a, void* client_data,
const void **buffer)
{
//...
}

2. Upgrade from 2.5.5 to 2.6.0.
3. Compiler errors because __LA_SSIZE_T is no longer defined.

What is the expected output? What do you see instead?

I'd expect __LA_SSIZE_T to still be defined. Or alternatively, a new
#define like __LA_USING_CALLBACKS, which if #define'd will prevent the
#undefs at the end of the header file.

What version of the product are you using? On what operating system?

2.6.0 on Linux, OSX, and Win32.

Original link: http://code.google.com/p/libarchive/issues/detail?id=1