Commits

Jed Brown  committed 98508c6 Merge

Merge branch 'jed/petscdlopen-extern'

* jed/petscdlopen-extern:
PetscDL: use PETSC_EXTERN and remove obsolete header

  • Participants
  • Parent commits 75a572e, 82b97d8

Comments (0)

Files changed (2)

File include/petscsys.h

 
 typedef void* PetscDLHandle;
 typedef enum {PETSC_DL_DECIDE=0,PETSC_DL_NOW=1,PETSC_DL_LOCAL=2} PetscDLMode;
-extern PetscErrorCode  PetscDLOpen(const char[],PetscDLMode,PetscDLHandle *);
-extern PetscErrorCode  PetscDLClose(PetscDLHandle *);
-extern PetscErrorCode  PetscDLSym(PetscDLHandle,const char[],void **);
+PETSC_EXTERN PetscErrorCode PetscDLOpen(const char[],PetscDLMode,PetscDLHandle *);
+PETSC_EXTERN PetscErrorCode PetscDLClose(PetscDLHandle *);
+PETSC_EXTERN PetscErrorCode PetscDLSym(PetscDLHandle,const char[],void **);
 
 
 #if defined(PETSC_USE_DEBUG)

File src/sys/dll/dlimpl.h

-#if !defined(_DLIMPL_H)
-#define _DLIMPL_H
-
-#include <petscsys.h>
-
-typedef void* PetscDLHandle;
-
-#define PETSC_DL_DECIDE   0
-#define PETSC_DL_NOW      1
-#define PETSC_DL_LOCAL    2
-
-extern PetscErrorCode PetscDLOpen(const char[],int,PetscDLHandle*);
-extern PetscErrorCode PetscDLClose(PetscDLHandle*);
-extern PetscErrorCode PetscDLSym(PetscDLHandle,const char[],void**);
-
-#endif