diff --git a/diff.js b/diff.js
index af82963b..84b3fa39 100644
--- a/diff.js
+++ b/diff.js
@@ -532,7 +532,7 @@
   if (typeof module !== 'undefined' && module.exports) {
     module.exports = JsDiff;
   }
-  else if (typeof define === 'function') {
+  else if (typeof define === 'function' && define.amd) {
     /*global define */
     define([], function() { return JsDiff; });
   }