I'm using QT Creator on Windows.

I've created a library project (called "test"), and am trying to export some functions.
Inside my "test_global.h" that QT Creator creates for me, I've added the following:

Qt Code:
  1. #include <QtCore/qglobal.h> // note: this was added by QTCreator
  2.  
  3. #ifdef Q_WS_WIN
  4. // This section is grayed out ????!
  5. #define EXPORT __declspec(dllexport)
  6. #else
  7. #define EXPORT
  8. #endif
To copy to clipboard, switch view to plain text mode 

Now, even though I'm developing on Windows, Q_WS_WIN is not defined.
I've dug into the qglobal.h file, and noticed that WIN32 is not defined, which is why Q_WS_WIN is not defined. ...So, please...where should I define WIN32?

Confused please help!