Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2013-02-21 07:15:47 +0400
committerYaakov Selkowitz <yselkowi@redhat.com>2013-02-21 07:15:47 +0400
commit7b3739f2aea793bece7d8489f0c9b8d41c2b1af7 (patch)
tree6069b9f585bbe56b56e7730769726de813156ce6 /winsup/cygwin/include/error.h
parent7e38f161ead94f1b1f88c9e931368002757e166f (diff)
* include/error.h (error_message_count): Declare as dllimport.
(error_one_per_line): Ditto. (error_print_progname): Ditto.
Diffstat (limited to 'winsup/cygwin/include/error.h')
-rw-r--r--winsup/cygwin/include/error.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/include/error.h b/winsup/cygwin/include/error.h
index 3f7f29a11..c5ec62064 100644
--- a/winsup/cygwin/include/error.h
+++ b/winsup/cygwin/include/error.h
@@ -19,9 +19,15 @@ extern "C"
void error (int, int, const char *, ...);
void error_at_line (int, int, const char *, unsigned int, const char *, ...);
+#ifdef __INSIDE_CYGWIN__
extern unsigned int error_message_count;
extern int error_one_per_line;
extern void (*error_print_progname) (void);
+#else
+extern __declspec(dllimport) unsigned int error_message_count;
+extern __declspec(dllimport) int error_one_per_line;
+extern __declspec(dllimport) void (*error_print_progname) (void);
+#endif
#ifdef __cplusplus
}