- add dll export macros

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@699 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Mike Kremer
2012-09-24 10:10:22 +00:00
parent dcf5272a0d
commit 5834e277f7
24 changed files with 41 additions and 36 deletions

View File

@@ -40,11 +40,11 @@ static char sccsid[] = "@(#)getopt.c 8.3 (Berkeley) 4/27/95";
#include <string.h>
#include "getopt.h"
int opterr = 1, /* if error message should be printed */
OPENMESHDLLEXPORT int opterr = 1, /* if error message should be printed */
optind = 1, /* index into parent argv vector */
optopt, /* character checked for validity */
optreset; /* reset getopt */
char *optarg; /* argument associated with option */
OPENMESHDLLEXPORT char *optarg; /* argument associated with option */
#define BADCH (int)'?'
#define BADARG (int)':'
@@ -54,7 +54,7 @@ char *optarg; /* argument associated with option */
* getopt --
* Parse argc/argv argument vector.
*/
int
OPENMESHDLLEXPORT int
getopt(int nargc, char * const *nargv, const char *ostr)
{
# define __progname nargv[0]