libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libunwind] libunwind versions and conditional compile


From: Thomas Hallgren
Subject: [libunwind] libunwind versions and conditional compile
Date: Wed, 1 Sep 2004 12:38:57 +0100

It would be very nice if the libunwind-common.h could contain some defines denoting the version of the libunwind package.

 

Suggestion:

 

#define UNW_MAJOR_VER=0

#define UNW_MINOR_VER=9

#define UNW_PATCH_VER=7

 

An UNW_PATCH_VER of, say 99 could denote the bleeding edge.

 

This would make it possible to write conditionals like:

 

#if UNW_MAJOR_VER > 0 || UNW_MINOR_VER > 9 || (UNW_MINOR_VER == 9 && UNW_PATCH_VER > 7)

#  define HAVE_UNW_STRERROR 1

#endif

 

Regards,

 

Thomas Hallgren


reply via email to

[Prev in Thread] Current Thread [Next in Thread]