title: GCC (ARM) equivalent to __declspec(dllexport)
body: <p>When building application for x86, the following code works fine:</p>
  
  <pre><code>#if   defined _WIN32
  #define LIB_PRE __declspec(dllexport)
  #elif defined __unix__
  #define LIB_PRE
  #else
  #define LIB_PRE __declspec(dllexport)
  #endif
  </code></pre>
  
  <p>But gives an error for GCC (ARM). I have found out that __declspec(dllexport) wont work on GCC. If so, what should I use for GCC (ARM)?</p>
  
  <p>Edit:</p>
  
  <p>Its used in many classes. e.g:</p>
  
  <pre><code>class CJsonValueString : public CJsonValue
  {
   private:
    jstring value;
   public:
    LIB_PRE CJsonValueString(jstring value);
    LIB_PRE CJsonValueString(const CJsonValueString * value);
    LIB_PRE jstring ToString() const;
    LIB_PRE int ToInt() const;
    LIB_PRE int64 ToInt64 () const;
    LIB_PRE float ToFloat () const;
    LIB_PRE void GetValue(jstring &amp; str) const;
  };
  </code></pre>