summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbehdad <behdad>2002-08-07 13:34:27 +0000
committerbehdad <behdad>2002-08-07 13:34:27 +0000
commita90817b36db6d34dc99d69b6495090f2a89b7095 (patch)
tree433940498b7b5c1c6400d6e1c00646f62bc3ceaf
parente4c09cb85c22e5a43a42bec401e97fce555698e7 (diff)
fribidi_config.h added to CVS.
-rw-r--r--ChangeLog2
-rw-r--r--fribidi_config.h54
-rw-r--r--fribidi_config.h.in24
3 files changed, 71 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index a572014..68b4b0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* AUTHORS: Added Tomas Frydrych <tomas@frydrych.uklinux.net>.
* READMY: Moved AbiWord to applications that use fribidi.
* fribidi.h: Removed #include "fribidi_mem.h".
+ * fribidi_config.h: Added to CVS, to make MSVC builds from CVS
+ possible.
2002-08-01 Behdad Esfahbod <fribidi@behdad.org>
* *.c, *.h, fribidi_config.h.in, configure.in, acconfig.h: Applied
diff --git a/fribidi_config.h b/fribidi_config.h
new file mode 100644
index 0000000..f20ea16
--- /dev/null
+++ b/fribidi_config.h
@@ -0,0 +1,54 @@
+
+#define FRIBIDI_PACKAGE "fribidi"
+
+#define FRIBIDI_VERSION "0.11.0pre"
+#define FRIBIDI_MAJOR_VERSION 0
+#define FRIBIDI_MINOR_VERSION 11
+#define FRIBIDI_INTERFACE_VERSION 2
+
+#if 0 /* FRIBIDI_NO_CHARSETS */
+#define FRIBIDI_NO_CHARSETS 1
+#else /* NOT FRIBIDI_NO_CHARSETS */
+#undef FRIBIDI_NO_CHARSETS
+#endif /* FRIBIDI_NO_CHARSETS */
+
+#define TOSTR(x) #x
+
+#ifdef WIN32
+
+#ifdef FRIBIDI_EXPORTS
+#define FRIBIDI_API __declspec(dllexport)
+#else
+#define FRIBIDI_API __declspec(dllimport)
+#endif
+
+#define snprintf _snprintf
+
+#else /* NOT WIN32 */
+
+#define FRIBIDI_API
+
+#endif /* WIN32 */
+
+/* __BEGIN_DECLS should be used at the beginning of your declarations,
+ * so that C++ compilers don't mangle their names. Use __END_DECLS at
+ * the end of C declarations. */
+#undef __BEGIN_DECLS
+#undef __END_DECLS
+#ifdef __cplusplus
+#define __BEGIN_DECLS extern "C" {
+#define __END_DECLS }
+#else /* NOT __cplusplus */
+#define __BEGIN_DECLS /* empty */
+#define __END_DECLS /* empty */
+#endif /* __cplusplus */
+
+#define FRIBIDI_TRUE 1
+#define FRIBIDI_FALSE 0
+
+#ifndef TRUE
+#define TRUE FRIBIDI_TRUE
+#endif /* TRUE */
+#ifndef FALSE
+#define FALSE FRIBIDI_FALSE
+#endif /* FALSE */
diff --git a/fribidi_config.h.in b/fribidi_config.h.in
index 9dcc46a..aa204e3 100644
--- a/fribidi_config.h.in
+++ b/fribidi_config.h.in
@@ -6,23 +6,29 @@
#define FRIBIDI_MINOR_VERSION @FRIBIDI_MINOR_VERSION@
#define FRIBIDI_INTERFACE_VERSION @FRIBIDI_INTERFACE_VERSION@
-#if @FRIBIDI_NO_CHARSETS@
+#if @FRIBIDI_NO_CHARSETS@ /* FRIBIDI_NO_CHARSETS */
#define FRIBIDI_NO_CHARSETS 1
-#else
+#else /* NOT FRIBIDI_NO_CHARSETS */
#undef FRIBIDI_NO_CHARSETS
-#endif
+#endif /* FRIBIDI_NO_CHARSETS */
#define TOSTR(x) #x
#ifdef WIN32
+
#ifdef FRIBIDI_EXPORTS
#define FRIBIDI_API __declspec(dllexport)
#else
#define FRIBIDI_API __declspec(dllimport)
#endif
-#else
+
+#define snprintf _snprintf
+
+#else /* NOT WIN32 */
+
#define FRIBIDI_API
-#endif
+
+#endif /* WIN32 */
/* __BEGIN_DECLS should be used at the beginning of your declarations,
* so that C++ compilers don't mangle their names. Use __END_DECLS at
@@ -32,17 +38,17 @@
#ifdef __cplusplus
#define __BEGIN_DECLS extern "C" {
#define __END_DECLS }
-#else
+#else /* NOT __cplusplus */
#define __BEGIN_DECLS /* empty */
#define __END_DECLS /* empty */
-#endif
+#endif /* __cplusplus */
#define FRIBIDI_TRUE 1
#define FRIBIDI_FALSE 0
#ifndef TRUE
#define TRUE FRIBIDI_TRUE
-#endif
+#endif /* TRUE */
#ifndef FALSE
#define FALSE FRIBIDI_FALSE
-#endif
+#endif /* FALSE */