Skip to content

Conflicting function definitions cause build failure #7

Description

In mod_amf.tmpl (which is renamed mod_amf.h by the install script), a number of functions are declared with a single argument, e.g.

int checkIsMobile(char *userAgent);
int checkIsTablet(char *userAgent);

char *getOperativeSystem(char *useragent);
char *getOperativeSystemDesktop(char *useragent);
char *getOperativeSystemVersion(char *useragent, char *os);

However, in mod_amf.c, they are redeclared with multiple arguments:

int checkIsMobile(char *userAgent, const char *ch_ua_mobile)
int checkIsTablet(char *userAgent, const char *ch_ua_tablet)

char *getOperativeSystem(char *useragent, const char *ch_ua_platform)
char *getOperativeSystemDesktop(char *useragent, const char *ch_ua_platform)
char *getOperativeSystemVersion(char *useragent, char *os, const char *ch_ua_platform)

This results in the build failing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions