This is the mail archive of the
cygwin
mailing list for the Cygwin project.
sys/cdefs.h or maybe gcc build issue
- From: cyg Simple <cygsimple at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 30 Oct 2016 14:23:12 -0400
- Subject: sys/cdefs.h or maybe gcc build issue
- Authentication-results: sourceware.org; auth=none
The below sample code will give a warning that visibility isn't
supported in this configuration. Either the GCC build is incorrect or
the sys/cdefs.h needs to be modified to define __hidden to empty.
/********************************************/
#include <sys/cdefs.h>
#include <stdio.h>
__hidden void hello (char * str) {
printf("%s %s\n", "Hello", str);
}
int main (int argc, char ** argv) {
hello("cruel world!");
}
/********************************************/
--
cyg Simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple