[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Varnamproject-discuss] [bug #41252] [libvarnam] Remove snprintf defines
From: |
Navaneeth |
Subject: |
[Varnamproject-discuss] [bug #41252] [libvarnam] Remove snprintf defines |
Date: |
Thu, 20 Mar 2014 04:43:24 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:27.0) Gecko/20100101 Firefox/27.0 |
Follow-up Comment #2, bug #41252 (project varnamproject):
Varnam uses a portable snprintf implementation available at
https://gitorious.org/varnamproject/libvarnam/source/455a2a5df151d93ace5f65de655efd6532e3e0a6:deps/snprintf.c.
To maintain compatibility with platforms which has snprintf, the authors of
that library decided to use some MACROS which can be used to toggle the
portable snprintf implementation. So systems which has support for it can just
use the system version and those who don't will get the portable
implementation.
Now this requires you define some MACROS while compile programs which uses
Varnam. We don't have to expose this because this is libvarnam's
implementation detail.
Try running
pkg-config --cflags varnam
Which will give you an output like,
-DHAVE_SNPRINTF -DPREFER_PORTABLE_SNPRINTF -DNEED_ASPRINTF
-I/usr/local/include/libvarnam
This bug talks about removing the HAVE_SNPRINTF and other snprintf related
defines so that everyone who needs to use varnam need not define all these.
You can't simply remove it because they are in use. So need to find out places
where this is in use, define these manually in the compilation unit and remove
it from pkg-config flags.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?41252>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/