Thanks. I checked GCC. It seems to support both C and C++. My source files are all in .c and .h. There are no C++ files at all.
Therefore C programming is assumed, and there is no function overloading. Thanks for your help. On Mon, Nov 11, 2013 at 12:34 PM, Weedy <[email protected]> wrote: > > On 10 Nov 2013 23:31, "w" <[email protected]> wrote: > > > > I am working on the wireless driver source codes that are written in the > C programming language. > > > > I find a function that seems to be declared in 2 different versions: > > > > ath_dev.h: void (*scan_start)(ath_dev_t); > > > > ieee80211_scan.h: int (* scan_start) (ieee80211_scanner_t > ss, > > wlan_if_t vaphandle, > > ieee80211_scan_params *params, > > IEEE80211_SCAN_REQUESTOR requestor, > > IEEE80211_SCAN_PRIORITY priority, > > IEEE80211_SCAN_ID *scan_id); > > > > Am I right to say that the OpenWrt uses the C++ compiler on the C > programs so function overloading is allowed? > > > > We use GCC. Pretty much every distro uses GCC. > Ask yourself if GCC allows this. > > _______________________________________________ > openwrt-users mailing list > [email protected] > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users > >
_______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
