X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getopt_long.h;fp=getopt_long.h;h=dbf799276993640fb08d21d7401da3c7406c43e8;hb=c95005141e95b4775709a305d305912e29b87587;hp=a1a9add17677e750850209e1bf293d258021a610;hpb=672cc1adbb2f8dac82757653cd579c093fe886c2;p=mothur.git diff --git a/getopt_long.h b/getopt_long.h index a1a9add..dbf7992 100644 --- a/getopt_long.h +++ b/getopt_long.h @@ -28,6 +28,10 @@ #ifndef _GETOPT_H +#ifdef __cplusplus +extern "C" { +#endif + struct option { const char *name; int has_arg; @@ -49,4 +53,8 @@ int getopt_long(int argc, char **argv, struct option *longopts, int *indexptr); +#ifdef __cplusplus +} +#endif + #endif /* _GETOPT_H */