- 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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace VDPM {
|
||||
Mesh traits for View Dependent Progressive Meshes
|
||||
*/
|
||||
|
||||
struct MeshTraits : public DefaultTraits
|
||||
struct OPENMESHDLLEXPORT MeshTraits : public DefaultTraits
|
||||
{
|
||||
VertexTraits
|
||||
{
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace VDPM {
|
||||
/** Active nodes in vertex hierarchy.
|
||||
\todo VFront documentation
|
||||
*/
|
||||
class VFront
|
||||
class OPENMESHDLLEXPORT VFront
|
||||
{
|
||||
private:
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace VDPM {
|
||||
|
||||
/** Keeps the vertex hierarchy build during analyzing a progressive mesh.
|
||||
*/
|
||||
class VHierarchy
|
||||
class OPENMESHDLLEXPORT VHierarchy
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace VDPM {
|
||||
|
||||
/** \todo ViewerParameters documentation
|
||||
*/
|
||||
class ViewingParameters
|
||||
class OPENMESHDLLEXPORT ViewingParameters
|
||||
{
|
||||
private:
|
||||
double modelview_matrix_[16];
|
||||
|
||||
Reference in New Issue
Block a user