Package: libautotrace-dev
Version: 0.31.1-8
Severity: normal
Even though autotrace.h has the
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
stanza at the beginning, it can be used in c++ due to non-c++ syntax:
/usr/include/autotrace/autotrace.h:45: error: use of enum
`_at_polynomial_degree' without previous declaration
/usr/include/autotrace/autotrace.h:50: error: use of enum `_at_msg_type'
without previous declaration
Moving typedefs fixes the problem. Patch here.
--- /usr/include/autotrace/autotrace.h 2005-01-07 19:39:52.000000000 +0100
+++ autotrace.h 2005-01-25 22:23:15.000000000 +0100
@@ -42,12 +42,10 @@
typedef struct _at_output_opts_type at_output_opts_type;
typedef struct _at_bitmap_type at_bitmap_type;
typedef struct _at_color_type at_color_type;
-typedef enum _at_polynomial_degree at_polynomial_degree;
typedef struct _at_spline_type at_spline_type;
typedef struct _at_spline_list_type at_spline_list_type;
typedef struct _at_spline_list_array_type at_spline_list_array_type;
#define at_splines_type at_spline_list_array_type
-typedef enum _at_msg_type at_msg_type;
/* Color in RGB */
struct _at_color_type
@@ -69,6 +67,7 @@
/* not the real number of points to define a
circle but to distinguish between a cubic spline */
};
+typedef enum _at_polynomial_degree at_polynomial_degree;
/* A Bezier spline can be represented as four points in the real plane:
a starting point, ending point, and two control points. The
@@ -225,6 +224,7 @@
AT_MSG_FATAL = 1,
AT_MSG_WARNING,
};
+typedef enum _at_msg_type at_msg_type;
typedef
void (* at_msg_func) (at_string msg, at_msg_type msg_type, at_address
client_data);
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to cs_CZ.UTF-8)
Versions of packages libautotrace-dev depends on:
ii libautotrace3 0.31.1-8 bitmap to vector graphics converte
ii libc6-dev [libc-dev] 2.3.2.ds1-18 GNU C Library: Development Librari
ii libmagick6-dev 6:6.0.6.2-1.5 Image manipulation library -- deve
ii libpng12-dev 1.2.8rel-1 PNG library - development
ii libpstoedit-dev 3.33-15 PostScript to editable vector grap
ii zlib1g-dev 1:1.2.2-3 compression library - development
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]