You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by ja...@apache.org on 2015/01/02 19:39:30 UTC

incubator-corinthia git commit: move #ifdef MSC_VER to DFPlatform.h

Repository: incubator-corinthia
Updated Branches:
  refs/heads/master 42c3c7240 -> e8d93d482


move #ifdef MSC_VER to DFPlatform.h

In DFError.h ATTRIBUTE_FORMAT was defined
In DFTypes.h ATTRIBUTE_FORMAT and ATTRIBUTE_ALIGNED was defined.
DFPlatform.h has been added to the files that needed it.


Project: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/commit/e8d93d48
Tree: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/tree/e8d93d48
Diff: http://git-wip-us.apache.org/repos/asf/incubator-corinthia/diff/e8d93d48

Branch: refs/heads/master
Commit: e8d93d482ae0c45a65cbe5b1f9dfe3e49646f640
Parents: 42c3c72
Author: jani <ja...@apache.org>
Authored: Fri Jan 2 19:36:35 2015 +0100
Committer: jani <ja...@apache.org>
Committed: Fri Jan 2 19:36:35 2015 +0100

----------------------------------------------------------------------
 DocFormats/api/headers/DocFormats/DFError.h              |  8 --------
 DocFormats/api/src/Formats.c                             |  1 +
 DocFormats/api/src/Operations.c                          |  1 +
 DocFormats/core/src/common/DFBDT.c                       |  1 +
 DocFormats/core/src/css/CSSSelector.c                    |  1 +
 DocFormats/core/src/html/DFHTDocument.c                  |  1 +
 DocFormats/core/src/html/DFHTMLNormalization.c           |  1 +
 DocFormats/core/src/html/DFTidyHelper.c                  |  1 +
 DocFormats/core/src/html/DFTidyWrapper.c                 |  1 +
 DocFormats/core/src/lib/DFBuffer.c                       |  1 +
 DocFormats/core/src/lib/DFError.c                        |  1 +
 DocFormats/core/src/lib/DFFilesystem.c                   |  1 +
 DocFormats/core/src/lib/DFStorage.c                      |  1 +
 DocFormats/core/src/lib/DFZipFile.c                      |  1 +
 DocFormats/core/src/lib/TextPackage.c                    |  1 +
 DocFormats/core/src/xml/DFChanges.c                      |  1 +
 DocFormats/core/src/xml/DFNameMap.c                      |  1 +
 DocFormats/core/tests/common/BDTTests.c                  |  1 +
 DocFormats/core/tests/html/HTMLPlain.c                   |  1 +
 DocFormats/core/tests/html/HTMLTests.c                   |  1 +
 DocFormats/filters/latex/tests/LaTeXTests.c              |  1 +
 DocFormats/filters/odf/src/ODF.c                         |  1 +
 DocFormats/filters/odf/src/ODFManifest.c                 |  1 +
 DocFormats/filters/odf/src/ODFPackage.c                  |  1 +
 DocFormats/filters/ooxml/src/common/OPC.c                |  1 +
 DocFormats/filters/ooxml/src/word/Word.c                 |  1 +
 DocFormats/filters/ooxml/src/word/WordGC.c               |  1 +
 DocFormats/filters/ooxml/src/word/WordNotes.c            |  1 +
 DocFormats/filters/ooxml/src/word/WordPackage.c          |  1 +
 DocFormats/filters/ooxml/src/word/WordSettings.c         |  1 +
 DocFormats/filters/ooxml/src/word/WordStyles.c           |  1 +
 DocFormats/filters/ooxml/src/word/WordTheme.c            |  1 +
 DocFormats/filters/ooxml/src/word/WordWhitespace.c       |  1 +
 .../filters/ooxml/src/word/formatting/WordCommonPr.c     |  1 +
 DocFormats/filters/ooxml/src/word/formatting/WordNumPr.c |  1 +
 DocFormats/filters/ooxml/src/word/formatting/WordTblPr.c |  1 +
 .../filters/ooxml/src/word/lenses/WordBlockLevel.c       |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordBody.c      |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordChange.c    |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordDocument.c  |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordDrawing.c   |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordEquation.c  |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordHyperlink.c |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordLenses.c    |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordParagraph.c |  1 +
 .../filters/ooxml/src/word/lenses/WordParagraphContent.c |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordRun.c       |  1 +
 .../filters/ooxml/src/word/lenses/WordRunContent.c       |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordSmartTag.c  |  1 +
 DocFormats/filters/ooxml/src/word/lenses/WordTable.c     |  1 +
 DocFormats/headers/DFPlatform.h                          | 11 +++++++++++
 DocFormats/platform/tests/OStests.c                      |  5 -----
 consumers/dfconvert/src/CMakeLists.txt                   |  1 +
 consumers/dfconvert/src/main.c                           |  1 +
 consumers/dfutil/src/main.c                              |  1 +
 55 files changed, 63 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/api/headers/DocFormats/DFError.h
----------------------------------------------------------------------
diff --git a/DocFormats/api/headers/DocFormats/DFError.h b/DocFormats/api/headers/DocFormats/DFError.h
index 42ca67c..5b08fb1 100644
--- a/DocFormats/api/headers/DocFormats/DFError.h
+++ b/DocFormats/api/headers/DocFormats/DFError.h
@@ -15,18 +15,10 @@
 #ifndef DocFormats_DFError_h
 #define DocFormats_DFError_h
 
-//#include "DFTypes.h"
 #include <stdarg.h>
 
 // It's really not nice having this here, but is the only way to get the compiler to typecheck the
 // DFErrorFormat arguments when such functionality is available.
-#ifndef ATTRIBUTE_FORMAT
-#ifdef _MSC_VER
-#define ATTRIBUTE_FORMAT(archetype,index,first)
-#else
-#define ATTRIBUTE_FORMAT(archetype,index,first) __attribute__((format(archetype,index,first)))
-#endif
-#endif
 
 typedef struct DFError DFError;
 

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/api/src/Formats.c
----------------------------------------------------------------------
diff --git a/DocFormats/api/src/Formats.c b/DocFormats/api/src/Formats.c
index 3d194de..20d77dd 100644
--- a/DocFormats/api/src/Formats.c
+++ b/DocFormats/api/src/Formats.c
@@ -13,6 +13,7 @@
 // limitations under the License.
 
 #include <DocFormats/Formats.h>
+#include "DFPlatform.h"
 #include "DFFilesystem.h"
 #include "DFString.h"
 #include <stdlib.h>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/api/src/Operations.c
----------------------------------------------------------------------
diff --git a/DocFormats/api/src/Operations.c b/DocFormats/api/src/Operations.c
index ad7fb5a..18575cd 100644
--- a/DocFormats/api/src/Operations.c
+++ b/DocFormats/api/src/Operations.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include <DocFormats/Operations.h>
 #include "DFFilesystem.h"
 #include "DFString.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/common/DFBDT.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/common/DFBDT.c b/DocFormats/core/src/common/DFBDT.c
index b414602..8a34599 100644
--- a/DocFormats/core/src/common/DFBDT.c
+++ b/DocFormats/core/src/common/DFBDT.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFBDT.h"
 #include "DFDOM.h"
 #include "DFXML.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/css/CSSSelector.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/css/CSSSelector.c b/DocFormats/core/src/css/CSSSelector.c
index e9e922d..52220be 100644
--- a/DocFormats/core/src/css/CSSSelector.c
+++ b/DocFormats/core/src/css/CSSSelector.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "CSSSelector.h"
 #include "DFNameMap.h"
 #include "DFString.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/html/DFHTDocument.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/html/DFHTDocument.c b/DocFormats/core/src/html/DFHTDocument.c
index 84aa2f3..6d6c3f0 100644
--- a/DocFormats/core/src/html/DFHTDocument.c
+++ b/DocFormats/core/src/html/DFHTDocument.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFHTDocument.h"
 #include "DFString.h"
 #include "streamio.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/html/DFHTMLNormalization.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/html/DFHTMLNormalization.c b/DocFormats/core/src/html/DFHTMLNormalization.c
index 1e4693f..36404a5 100644
--- a/DocFormats/core/src/html/DFHTMLNormalization.c
+++ b/DocFormats/core/src/html/DFHTMLNormalization.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFHTMLNormalization.h"
 #include "DFDOM.h"
 #include "CSS.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/html/DFTidyHelper.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/html/DFTidyHelper.c b/DocFormats/core/src/html/DFTidyHelper.c
index dc048fc..f2f2303 100644
--- a/DocFormats/core/src/html/DFTidyHelper.c
+++ b/DocFormats/core/src/html/DFTidyHelper.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFTidyHelper.h"
 #include "buffio.h"
 #include "streamio.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/html/DFTidyWrapper.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/html/DFTidyWrapper.c b/DocFormats/core/src/html/DFTidyWrapper.c
index 70e93cf..72fe583 100644
--- a/DocFormats/core/src/html/DFTidyWrapper.c
+++ b/DocFormats/core/src/html/DFTidyWrapper.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFTidyWrapper.h"
 #include "DFHTDocument.h"
 #include "DFCommon.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/lib/DFBuffer.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/lib/DFBuffer.c b/DocFormats/core/src/lib/DFBuffer.c
index c23b66b..92c7a02 100644
--- a/DocFormats/core/src/lib/DFBuffer.c
+++ b/DocFormats/core/src/lib/DFBuffer.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFBuffer.h"
 #include "DFCommon.h"
 #include "DFString.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/lib/DFError.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/lib/DFError.c b/DocFormats/core/src/lib/DFError.c
index 22a543f..4eb19dd 100644
--- a/DocFormats/core/src/lib/DFError.c
+++ b/DocFormats/core/src/lib/DFError.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include <DocFormats/DFError.h>
 #include "DFCommon.h"
 #include <assert.h>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/lib/DFFilesystem.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/lib/DFFilesystem.c b/DocFormats/core/src/lib/DFFilesystem.c
index b6707ef..41a9f28 100644
--- a/DocFormats/core/src/lib/DFFilesystem.c
+++ b/DocFormats/core/src/lib/DFFilesystem.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFFilesystem.h"
 #include "DFString.h"
 #include "DFArray.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/lib/DFStorage.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/lib/DFStorage.c b/DocFormats/core/src/lib/DFStorage.c
index c4f24e5..04521aa 100644
--- a/DocFormats/core/src/lib/DFStorage.c
+++ b/DocFormats/core/src/lib/DFStorage.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include <DocFormats/DFStorage.h>
 #include "DFCommon.h"
 #include "DFString.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/lib/DFZipFile.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/lib/DFZipFile.c b/DocFormats/core/src/lib/DFZipFile.c
index 8bc0bcb..faec05f 100644
--- a/DocFormats/core/src/lib/DFZipFile.c
+++ b/DocFormats/core/src/lib/DFZipFile.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFZipFile.h"
 #include "DFPlatform.h"
 #include "DFFilesystem.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/lib/TextPackage.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/lib/TextPackage.c b/DocFormats/core/src/lib/TextPackage.c
index 031bb1e..b81a42e 100644
--- a/DocFormats/core/src/lib/TextPackage.c
+++ b/DocFormats/core/src/lib/TextPackage.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "TextPackage.h"
 #include "DFBuffer.h"
 #include "DFString.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/xml/DFChanges.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/xml/DFChanges.c b/DocFormats/core/src/xml/DFChanges.c
index 3e2ad96..8dd44de 100644
--- a/DocFormats/core/src/xml/DFChanges.c
+++ b/DocFormats/core/src/xml/DFChanges.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFChanges.h"
 #include "DFHashTable.h"
 #include "DFString.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/src/xml/DFNameMap.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/src/xml/DFNameMap.c b/DocFormats/core/src/xml/DFNameMap.c
index 1435407..f408003 100644
--- a/DocFormats/core/src/xml/DFNameMap.c
+++ b/DocFormats/core/src/xml/DFNameMap.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFNameMap.h"
 #include "DFDOM.h"
 #include "DFHashTable.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/tests/common/BDTTests.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/tests/common/BDTTests.c b/DocFormats/core/tests/common/BDTTests.c
index 4d01e7e..df10d02 100644
--- a/DocFormats/core/tests/common/BDTTests.c
+++ b/DocFormats/core/tests/common/BDTTests.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "BDTTests.h"
 #include "DFDOM.h"
 #include "DFBDT.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/tests/html/HTMLPlain.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/tests/html/HTMLPlain.c b/DocFormats/core/tests/html/HTMLPlain.c
index 656c5ba..d260de4 100644
--- a/DocFormats/core/tests/html/HTMLPlain.c
+++ b/DocFormats/core/tests/html/HTMLPlain.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "HTMLPlain.h"
 #include "TextPackage.h"
 #include "DFXML.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/core/tests/html/HTMLTests.c
----------------------------------------------------------------------
diff --git a/DocFormats/core/tests/html/HTMLTests.c b/DocFormats/core/tests/html/HTMLTests.c
index 540f2af..76a1424 100644
--- a/DocFormats/core/tests/html/HTMLTests.c
+++ b/DocFormats/core/tests/html/HTMLTests.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFUnitTest.h"
 #include "HTMLPlain.h"
 #include "DFHTML.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/latex/tests/LaTeXTests.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/latex/tests/LaTeXTests.c b/DocFormats/filters/latex/tests/LaTeXTests.c
index 2336651..16a113c 100644
--- a/DocFormats/filters/latex/tests/LaTeXTests.c
+++ b/DocFormats/filters/latex/tests/LaTeXTests.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "DFUnitTest.h"
 #include "HTMLPlain.h"
 #include "HTMLToLaTeX.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/odf/src/ODF.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/odf/src/ODF.c b/DocFormats/filters/odf/src/ODF.c
index 43f933e..299fc95 100644
--- a/DocFormats/filters/odf/src/ODF.c
+++ b/DocFormats/filters/odf/src/ODF.c
@@ -12,5 +12,6 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "ODF.h"
 #include "DFCommon.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/odf/src/ODFManifest.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/odf/src/ODFManifest.c b/DocFormats/filters/odf/src/ODFManifest.c
index 172d8f2..843408b 100644
--- a/DocFormats/filters/odf/src/ODFManifest.c
+++ b/DocFormats/filters/odf/src/ODFManifest.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "ODFManifest.h"
 #include "DFXMLNames.h"
 #include "DFCommon.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/odf/src/ODFPackage.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/odf/src/ODFPackage.c b/DocFormats/filters/odf/src/ODFPackage.c
index e63c5f7..c05c04c 100644
--- a/DocFormats/filters/odf/src/ODFPackage.c
+++ b/DocFormats/filters/odf/src/ODFPackage.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "ODFPackage.h"
 #include "DFDOM.h"
 #include "DFXML.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/common/OPC.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/common/OPC.c b/DocFormats/filters/ooxml/src/common/OPC.c
index 2937645..724470c 100644
--- a/DocFormats/filters/ooxml/src/common/OPC.c
+++ b/DocFormats/filters/ooxml/src/common/OPC.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "OPC.h"
 #include "DFDOM.h"
 #include "DFFilesystem.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/Word.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/Word.c b/DocFormats/filters/ooxml/src/word/Word.c
index 7a33866..e17387d 100644
--- a/DocFormats/filters/ooxml/src/word/Word.c
+++ b/DocFormats/filters/ooxml/src/word/Word.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "Word.h"
 #include "WordStyles.h"
 #include "DFHTML.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/WordGC.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/WordGC.c b/DocFormats/filters/ooxml/src/word/WordGC.c
index 09afaef..2698f71 100644
--- a/DocFormats/filters/ooxml/src/word/WordGC.c
+++ b/DocFormats/filters/ooxml/src/word/WordGC.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordGC.h"
 #include "WordConverter.h"
 #include "WordPackage.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/WordNotes.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/WordNotes.c b/DocFormats/filters/ooxml/src/word/WordNotes.c
index cd4a887..06caa60 100644
--- a/DocFormats/filters/ooxml/src/word/WordNotes.c
+++ b/DocFormats/filters/ooxml/src/word/WordNotes.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordNotes.h"
 #include "WordConverter.h"
 #include "WordSheet.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/WordPackage.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/WordPackage.c b/DocFormats/filters/ooxml/src/word/WordPackage.c
index 5d414a0..86b3bed 100644
--- a/DocFormats/filters/ooxml/src/word/WordPackage.c
+++ b/DocFormats/filters/ooxml/src/word/WordPackage.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordPackage.h"
 #include "WordStyles.h"
 #include "WordSettings.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/WordSettings.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/WordSettings.c b/DocFormats/filters/ooxml/src/word/WordSettings.c
index 25e3bdc..2c17786 100644
--- a/DocFormats/filters/ooxml/src/word/WordSettings.c
+++ b/DocFormats/filters/ooxml/src/word/WordSettings.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordSettings.h"
 #include "DFDOM.h"
 #include "DFXML.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/WordStyles.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/WordStyles.c b/DocFormats/filters/ooxml/src/word/WordStyles.c
index d3b1b09..c7e5e8a 100644
--- a/DocFormats/filters/ooxml/src/word/WordStyles.c
+++ b/DocFormats/filters/ooxml/src/word/WordStyles.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordStyles.h"
 #include "DFDOM.h"
 #include "DFHTML.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/WordTheme.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/WordTheme.c b/DocFormats/filters/ooxml/src/word/WordTheme.c
index a9eb20f..dbd9cc3 100644
--- a/DocFormats/filters/ooxml/src/word/WordTheme.c
+++ b/DocFormats/filters/ooxml/src/word/WordTheme.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordTheme.h"
 #include "WordConverter.h"
 #include "DFDOM.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/WordWhitespace.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/WordWhitespace.c b/DocFormats/filters/ooxml/src/word/WordWhitespace.c
index cf3c354..5769cf9 100644
--- a/DocFormats/filters/ooxml/src/word/WordWhitespace.c
+++ b/DocFormats/filters/ooxml/src/word/WordWhitespace.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordWhitespace.h"
 #include "DFDOM.h"
 #include "DFClassNames.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/formatting/WordCommonPr.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/formatting/WordCommonPr.c b/DocFormats/filters/ooxml/src/word/formatting/WordCommonPr.c
index cafd637..0578e3b 100644
--- a/DocFormats/filters/ooxml/src/word/formatting/WordCommonPr.c
+++ b/DocFormats/filters/ooxml/src/word/formatting/WordCommonPr.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordCommonPr.h"
 #include "WordStyles.h"
 #include "WordSheet.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/formatting/WordNumPr.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/formatting/WordNumPr.c b/DocFormats/filters/ooxml/src/word/formatting/WordNumPr.c
index 3ef26f1..21d0deb 100644
--- a/DocFormats/filters/ooxml/src/word/formatting/WordNumPr.c
+++ b/DocFormats/filters/ooxml/src/word/formatting/WordNumPr.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordNumPr.h"
 #include "WordNumbering.h"
 #include "WordSheet.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/formatting/WordTblPr.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/formatting/WordTblPr.c b/DocFormats/filters/ooxml/src/word/formatting/WordTblPr.c
index 05632c1..bb398b3 100644
--- a/DocFormats/filters/ooxml/src/word/formatting/WordTblPr.c
+++ b/DocFormats/filters/ooxml/src/word/formatting/WordTblPr.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordTblPr.h"
 #include "WordStyles.h"
 #include "WordSection.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordBlockLevel.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordBlockLevel.c b/DocFormats/filters/ooxml/src/word/lenses/WordBlockLevel.c
index d1fc6b9..fe71ff2 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordBlockLevel.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordBlockLevel.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFDOM.h"
 #include "DFCommon.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordBody.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordBody.c b/DocFormats/filters/ooxml/src/word/lenses/WordBody.c
index 25981e5..6c8b92f 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordBody.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordBody.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFDOM.h"
 #include "DFCommon.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordChange.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordChange.c b/DocFormats/filters/ooxml/src/word/lenses/WordChange.c
index 3a8675a..484131c 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordChange.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordChange.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFDOM.h"
 #include "DFString.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordDocument.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordDocument.c b/DocFormats/filters/ooxml/src/word/lenses/WordDocument.c
index 01fb3f4..8c2ce78 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordDocument.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordDocument.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFDOM.h"
 #include "DFCommon.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordDrawing.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordDrawing.c b/DocFormats/filters/ooxml/src/word/lenses/WordDrawing.c
index 83de7c1..0d53286 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordDrawing.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordDrawing.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordDrawing.h"
 #include "WordLenses.h"
 #include "WordObjects.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordEquation.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordEquation.c b/DocFormats/filters/ooxml/src/word/lenses/WordEquation.c
index db24b00..d56b9e2 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordEquation.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordEquation.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFCommon.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordHyperlink.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordHyperlink.c b/DocFormats/filters/ooxml/src/word/lenses/WordHyperlink.c
index 6f00a75..7d19742 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordHyperlink.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordHyperlink.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "WordStyles.h"
 #include "OPC.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordLenses.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordLenses.c b/DocFormats/filters/ooxml/src/word/lenses/WordLenses.c
index 8ec87ab..2137762 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordLenses.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordLenses.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFCommon.h"
 

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordParagraph.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordParagraph.c b/DocFormats/filters/ooxml/src/word/lenses/WordParagraph.c
index beb9188..0a836d0 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordParagraph.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordParagraph.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "WordSheet.h"
 #include "WordStyles.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordParagraphContent.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordParagraphContent.c b/DocFormats/filters/ooxml/src/word/lenses/WordParagraphContent.c
index c9ec88d..19e86f2 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordParagraphContent.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordParagraphContent.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "WordBookmark.h"
 #include "WordObjects.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordRun.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordRun.c b/DocFormats/filters/ooxml/src/word/lenses/WordRun.c
index 22150a3..86b21be 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordRun.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordRun.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFString.h"
 #include "WordNotes.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordRunContent.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordRunContent.c b/DocFormats/filters/ooxml/src/word/lenses/WordRunContent.c
index af3831e..784e145 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordRunContent.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordRunContent.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFDOM.h"
 #include "WordDrawing.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordSmartTag.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordSmartTag.c b/DocFormats/filters/ooxml/src/word/lenses/WordSmartTag.c
index 738d86e..5f527d0 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordSmartTag.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordSmartTag.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "DFDOM.h"
 #include "DFCommon.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/filters/ooxml/src/word/lenses/WordTable.c
----------------------------------------------------------------------
diff --git a/DocFormats/filters/ooxml/src/word/lenses/WordTable.c b/DocFormats/filters/ooxml/src/word/lenses/WordTable.c
index 5c3d959..36f51d5 100644
--- a/DocFormats/filters/ooxml/src/word/lenses/WordTable.c
+++ b/DocFormats/filters/ooxml/src/word/lenses/WordTable.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "WordLenses.h"
 #include "WordStyles.h"
 #include "WordSheet.h"

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/headers/DFPlatform.h
----------------------------------------------------------------------
diff --git a/DocFormats/headers/DFPlatform.h b/DocFormats/headers/DFPlatform.h
index f36269f..ea517e7 100755
--- a/DocFormats/headers/DFPlatform.h
+++ b/DocFormats/headers/DFPlatform.h
@@ -34,6 +34,17 @@
 #endif
 
 
+#ifndef ATTRIBUTE_FORMAT
+#ifdef _MSC_VER
+#define ATTRIBUTE_FORMAT(archetype,index,first)
+#define ATTRIBUTE_ALIGNED(n) __declspec(align(8))
+#else
+#define ATTRIBUTE_FORMAT(archetype,index,first) __attribute__((format(archetype,index,first)))
+#define ATTRIBUTE_ALIGNED(n) __attribute__((aligned (n)))
+#endif
+#endif
+
+
 
 typedef struct DFDirEntryList DFDirEntryList;
 

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/DocFormats/platform/tests/OStests.c
----------------------------------------------------------------------
diff --git a/DocFormats/platform/tests/OStests.c b/DocFormats/platform/tests/OStests.c
index b659275..a1f430a 100644
--- a/DocFormats/platform/tests/OStests.c
+++ b/DocFormats/platform/tests/OStests.c
@@ -15,11 +15,6 @@
 #include "DFUnitTest.h"
 #include "DFPlatform.h"
 #include <stddef.h>
-#ifdef WIN32
-#include <direct.h>
-#else
-#include <unistd.h>
-#endif
 
 
 static void test_DFGetImageDimensions_gif(void)

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/consumers/dfconvert/src/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/consumers/dfconvert/src/CMakeLists.txt b/consumers/dfconvert/src/CMakeLists.txt
index 1157c53..8b18959 100644
--- a/consumers/dfconvert/src/CMakeLists.txt
+++ b/consumers/dfconvert/src/CMakeLists.txt
@@ -35,6 +35,7 @@ set(SOURCES
 include_directories()
 include_directories(SYSTEM ${INCLUDE_DIRS})
 include_directories(SYSTEM ../../../DocFormats/api/headers)
+include_directories(SYSTEM ../../../DocFormats/headers)
 include_directories(.)
 link_directories(${LIB_DIRS})
 

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/consumers/dfconvert/src/main.c
----------------------------------------------------------------------
diff --git a/consumers/dfconvert/src/main.c b/consumers/dfconvert/src/main.c
index abaaec1..b2bacb3 100644
--- a/consumers/dfconvert/src/main.c
+++ b/consumers/dfconvert/src/main.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include <DocFormats/DocFormats.h>
 #include <stdio.h>
 #include <string.h>

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/e8d93d48/consumers/dfutil/src/main.c
----------------------------------------------------------------------
diff --git a/consumers/dfutil/src/main.c b/consumers/dfutil/src/main.c
index 1812f2d..e1bfc7f 100644
--- a/consumers/dfutil/src/main.c
+++ b/consumers/dfutil/src/main.c
@@ -12,6 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+#include "DFPlatform.h"
 #include "Commands.h"
 #include "BDTTests.h"
 #include "WordPlain.h"