- 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:
@@ -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]
|
||||
|
||||
@@ -2,19 +2,20 @@
|
||||
#define _GETOPT_H_
|
||||
|
||||
#include <OpenMesh/Core/System/compiler.hh>
|
||||
#include <OpenMesh/Core/System/OpenMeshDLLMacros.hh>
|
||||
|
||||
#if defined(WIN32)
|
||||
#if defined(__cplusplus)
|
||||
|
||||
extern "C" {
|
||||
|
||||
extern int opterr;
|
||||
extern int optind;
|
||||
extern int optopt;
|
||||
extern int optreset;
|
||||
extern char *optarg;
|
||||
extern OPENMESHDLLEXPORT int opterr;
|
||||
extern OPENMESHDLLEXPORT int optind;
|
||||
extern OPENMESHDLLEXPORT int optopt;
|
||||
extern OPENMESHDLLEXPORT int optreset;
|
||||
extern OPENMESHDLLEXPORT char *optarg;
|
||||
|
||||
extern int getopt(int nargc, char * const *nargv, const char *ostr);
|
||||
OPENMESHDLLEXPORT extern int getopt(int nargc, char * const *nargv, const char *ostr);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user