Skip to content

Commit

Permalink
chg static linking countedref module
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Dreyer authored and Oleksandr Motsak committed Sep 5, 2012
1 parent d94836e commit 09e3e90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Singular/countedref.cc
Original file line number Diff line number Diff line change
Expand Up @@ -705,5 +705,7 @@ void countedref_init()
CountedRefEnv::sh_id()=setBlackboxStuff(bbxshared, "shared");
}

#ifdef HAVE_DYNAMIC_COUNTEDREF
extern "C" { void mod_init() { countedref_init(); } }
#endif

4 changes: 3 additions & 1 deletion Singular/countedref.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
#include <omalloc/omalloc.h>
#include <kernel/structs.h>
#include <kernel/febase.h>

#include "subexpr.h"
#include "idrec.h"
#include "ipid.h"
/** @class CountedRefPtr
* This class implements a smart pointer which handles pointer-style access
* to a reference-counted structure and destructing the latter after use.
Expand Down

0 comments on commit 09e3e90

Please sign in to comment.